i965: Upload 3DSTATE_BINDING_TABLE_POINTERS_HS when !TCS on Gen9+.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 10 Jan 2016 23:01:03 +0000 (15:01 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 11 Jan 2016 20:10:00 +0000 (12:10 -0800)
commitaa6aa39a8fb560ffe362970ef9f2f221661a30c9
tree6038ba79cdecd73218c29017489a5e4064be039d
parentf2c891353609b48459f27f205407d42823dd7d03
i965: Upload 3DSTATE_BINDING_TABLE_POINTERS_HS when !TCS on Gen9+.

Gen9+ requires us to emit 3DSTATE_BINDING_TABLE_POINTERS_HS for the
hull shader push constants to take effect.  The passthrough TCS uses
push constants for the default tessellation levels.  So, when those
change, we need to re-upload the binding table as well.

Fixes five Piglit tests on Skylake:
- spec/arb_tessellation_shader/vs-tes-vertex
- spec/arb_tessellation_shader/vs-tes-tessinner-tessouter-inputs-quads
- spec/arb_tessellation_shader/vs-tes-tessinner-tessouter-inputs-tris
- spec/arb_tessellation_shader/tes-read-texture
- spec/arb_tessellation_shader/tess_with_geometry

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_binding_tables.c