anv: fix up dynamic clip emission
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 10 Aug 2020 20:58:55 +0000 (23:58 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 11 Aug 2020 07:07:08 +0000 (10:07 +0300)
commitffc8f2ba4c2cc38c5612ef20235b90b648c4feff
tree08458af2549dd04118ebf0a0ff32fba0b09a9476
parent240c0746d1617690ede440794eb4aa981784f5df
anv: fix up dynamic clip emission

There were 2 issues :

   * We were not emitting the clip state when the pipeline changed

   * On Gen7 we did not program the front facing & cull mode dynamic
     values in the clip state

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: c34d8ac26e0a21 ("anv: handle dynamic viewport count")
Closes https://gitlab.freedesktop.org/mesa/mesa/-/issues/3379

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6265>
src/intel/vulkan/anv_genX.h
src/intel/vulkan/genX_cmd_buffer.c