iris: Rework default tessellation level uploads
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 7 Mar 2019 04:56:37 +0000 (20:56 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 11 Mar 2019 21:07:12 +0000 (14:07 -0700)
commit2f51cb5e67524d55508ec7bc1ee2a9d4d1087291
tree1e67c4d60e4fda0008ea126723d140f0dd708226
parentfd5075e0594ba13c24eb195e098a814c8e76249b
iris: Rework default tessellation level uploads

Now that we've added a system value uploading mechanism, we may as well
reuse the same system for default tessellation levels.  This simplifies
the state upload code a bit.

Also fixes:
KHR-GL45.tessellation_shader.tessellation_control_to_tessellation_evaluation.gl_tessLevel

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/gallium/drivers/iris/iris_program.c
src/gallium/drivers/iris/iris_state.c