diff options
author | Kenneth Graunke <[email protected]> | 2019-03-09 01:02:06 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-03-11 15:04:08 -0700 |
commit | d75f84cb6521c323092f50af41bce435d515a647 (patch) | |
tree | 634b4708f59c61c8e58da5e0b75ab2944321be19 /src/compiler/spirv/spirv_to_nir.c | |
parent | 863e810a19d31cab58f4a7e579306ce1f8f2d16f (diff) |
iris: Fix write enable in pinning of depth/stencil resources
We may bind new Z/S buffers (which come via the framebuffer CSO,
triggering IRIS_DIRTY_DEPTH_BUFFER), but with writes disabled.
The next draw may enable Z or S writes (which come via the ZSA CSO,
triggering IRIS_DIRTY_WM_DEPTH_STENCIL), which requires us to update
our pin to have the write flag.
So, update pinning if either dirty flag changes. To clarify, pass
cso_zsa to the pinning function rather than pulling the random values
out of ice->state, which unfortunately have to exist for the resolve
code since iris_depth_stencil_alpha_state only exists in iris_state.c.
Diffstat (limited to 'src/compiler/spirv/spirv_to_nir.c')
0 files changed, 0 insertions, 0 deletions