iris: Mark cbuf0 as not needing uploading every single time
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 20 Jun 2019 23:28:58 +0000 (18:28 -0500)
committerTimur Kristóf <timur.kristof@gmail.com>
Sun, 23 Jun 2019 16:32:11 +0000 (18:32 +0200)
commitebc8c20b3e688edf7b0157774572251444d33b04
treea49a2aa8ce8f4db4200d8422b00da4007f99a2b4
parent188dbb1679b391abe6322e5b3e74bed2522756e2
iris: Mark cbuf0 as not needing uploading every single time

I neglected to mark cbuf0_needs_upload = false after uploading it.
The obvious fix regressed user clip plane tests, because of a second
bug: we also forgot to mark that they may need re-uploading when
changing shader programs (which may have more or less system values).

Thanks to Timur Kristóf for catching the original issue.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
src/gallium/drivers/iris/iris_program.c
src/gallium/drivers/iris/iris_state.c