Some int left shift operations are undefined behavior in C
There are places in the code that left-shift resulting in undefined behavior based on ISO C99 6.5.7 and could lead the compiler to optimize the code out One of the found Undefined behavior is VIRGL_OBJ_SHADER_OFFSET_CONT, 0x1 << 31 should be fixed by 0x1u << 31.