i965: Make Gen4-5 push constants call _mesa_load_state_parameters too.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 21 Nov 2014 08:55:11 +0000 (00:55 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 22 Nov 2014 00:25:17 +0000 (16:25 -0800)
commita746be259da868722889faac7964ef6a6034953a
tree95f6fdbdedc8c789bd19d5faa44c73030a6bf6a2
parent88fea85f09e2252035bec66ab26c375b45b000f5
i965: Make Gen4-5 push constants call _mesa_load_state_parameters too.

In commit 5e37a2a4a8a, I made the pull constant code stop calling
_mesa_load_state_parameters() when there were no pull parameters.

This worked fine on Gen6+ because the push constant code also called
it if there were any push constants.  However, the Gen4-5 push constant
code wasn't doing this.  This patch makes it do so, like the Gen6+ code.

A better long term solution would be to make core Mesa just handle this
for us when necessary.

Fixes around 8766 Piglit tests on Ironlake, and probably Gen4 as well.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Tested-by: Mark Janes <mark.a.janes@intel.com>
src/mesa/drivers/dri/i965/brw_curbe.c