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:
committed by
Marge Bot
parent
1ec0cdb733
commit
a6f67d5b69
@@ -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) ||
|
||||
|
||||
Reference in New Issue
Block a user