i965: Call gen6_upload_push_constants() even when the stage is disabled.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 20 Oct 2017 22:53:50 +0000 (15:53 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 24 Oct 2017 23:14:04 +0000 (16:14 -0700)
commit66b4a7a79e3da03e11233acd32b6e37bf3969dd8
treed8a0e85e3f0d7b508de155366c2eec4ce69919f4
parent16096e9119d7f68c0382cf802ff7f3a93668ede9
i965: Call gen6_upload_push_constants() even when the stage is disabled.

This properly sets stage_state->push_constant_dirty = true, so that we
emit 3DSTATE_CONSTANT_XS to disable the constant buffer for the shader
stage.  It also sets stage_state->push_const_size = 0.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/gen6_constant_state.c
src/mesa/drivers/dri/i965/genX_state_upload.c