The old code even falls apart for nr == 0 (which is caught earlier, but)! Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>tags/android-x86-2.2-r2
@@ -362,7 +362,7 @@ i915_emit_hardware_state(struct i915_context *i915 ) | |||
uint i; | |||
OUT_BATCH( _3DSTATE_PIXEL_SHADER_CONSTANTS | (nr * 4) ); | |||
OUT_BATCH( (1 << (nr - 1)) | ((1 << (nr - 1)) - 1) ); | |||
OUT_BATCH((1 << nr) - 1); | |||
for (i = 0; i < nr; i++) { | |||
const uint *c; |