summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/etnaviv/etnaviv_blend.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-09-18 17:47:44 -0700
committerEric Anholt <[email protected]>2017-09-18 20:17:25 -0700
commit3752ad28f23fc8136f75104b6ac4572341a05467 (patch)
tree62595f8d3290cc587a336adc7dcd0f79a4a3e3c8 /src/gallium/drivers/etnaviv/etnaviv_blend.c
parentb339d63f0d0337df918c7aed471b90c02401bdb7 (diff)
broadcom/vc4: Fix use-after-free when deleting a program.
By leaving the compiled shader in the context's stage state, the next compile of a new FS would look in the old compiled FS for figuring out whether to set various dirty flags for the VS compile. Clear out the pointer when deleting the program, and make sure that we always mark the state as dirty if the previous program had been lost. Fixes valgrind warnings on glsl-max-varyings. Fixes: 2350569a78c6 ("vc4: Avoid VS shader recompiles by keeping a set of FS inputs seen so far.")
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_blend.c')
0 files changed, 0 insertions, 0 deletions