mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-24 22:30:31 +01:00
v3d/compiler: Only lower logic ops for color buffers that exist
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33942>
This commit is contained in:
parent
1ec0cdb733
commit
a6f67d5b69
1 changed files with 3 additions and 0 deletions
|
|
@ -354,6 +354,9 @@ v3d_nir_lower_logic_ops_block(nir_block *block, struct v3d_compile *c)
|
|||
const int rt = driver_loc;
|
||||
assert(rt < V3D_MAX_DRAW_BUFFERS);
|
||||
|
||||
if (!(c->fs_key->cbufs & (1 << rt)))
|
||||
continue;
|
||||
|
||||
const enum pipe_format format =
|
||||
c->fs_key->color_fmt[rt].format;
|
||||
if (util_format_is_float(format) ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue