i965: Upload HS push constants whenever default tess. levels change.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 18 Dec 2015 11:13:07 +0000 (03:13 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 23 Dec 2015 01:22:05 +0000 (17:22 -0800)
commit239a4bdcd44529e9495d9e68cf5a157421753b3c
tree79f5aae8e3977eb2b7f8664463599a1df85fb552
parent0d5cb4aef45e97b35a45925d7e9e7c6ca45c1675
i965: Upload HS push constants whenever default tess. levels change.

When using tessellation on OpenGL without a TCS, default values for
gl_TessLevelOuter/gl_TessLevelInner are provided via the API.

Core Mesa will flag ctx->DriverFlags.NewDefaultTessLevels whenever those
values change.  We add a corresponding BRW_NEW_DEFAULT_TESS_LEVELS flag
and hook it up to HS push constants (which will be used to upload these
default values to the autogenerated TCS).

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