diff options
author | Boris Brezillon <[email protected]> | 2020-01-31 09:22:50 +0100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-03 12:53:47 +0000 |
commit | c68cd39eb3797eb34a049950cb34acfd0719cde7 (patch) | |
tree | 1c1b17ab0ef8c6c6064f439fb2b5544001e27bf8 /src/panfrost/midgard/midgard_schedule.c | |
parent | 25946be4c451fe1cc645a6fd3cb5d59160e93f25 (diff) |
pan/midgard: Make sure we pass the right RT id to emit_fragment_store()
nir_intrinsic_base() is assigned nir_variable.data.driver_location,
which is assigned a unique ID based on the variable position in the
shader variable list. There's no guarantee that this position will
match the RT id we want to pass to emit_fragment_store().
Add a search_var() helper to retrieve a nir_variable based on its driver
location, so we can pass the right RT value to emit_fragment_store().
We also make sure the shader output is color, since emit_fragment_store()
is not ready for depth/stencil stores yet.
Signed-off-by: Boris Brezillon <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676>
Diffstat (limited to 'src/panfrost/midgard/midgard_schedule.c')
0 files changed, 0 insertions, 0 deletions