mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 16:30:29 +01:00
panfrost/blend: Prepare for lower_fragcolor
FRAG_RESULT_COLOR means something a bit different. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10393>
This commit is contained in:
parent
120dd92e86
commit
6a4482df98
2 changed files with 3 additions and 2 deletions
|
|
@ -527,7 +527,7 @@ pan_blend_create_shader(const struct panfrost_device *dev,
|
|||
nir_variable_create(b.shader, nir_var_shader_out,
|
||||
glsl_vector_type(glsl_type, 4),
|
||||
"gl_FragColor");
|
||||
c_out->data.location = FRAG_RESULT_COLOR;
|
||||
c_out->data.location = FRAG_RESULT_DATA0;
|
||||
|
||||
nir_ssa_def *s_src[] = {nir_load_var(&b, c_src), nir_load_var(&b, c_src1)};
|
||||
|
||||
|
|
|
|||
|
|
@ -337,7 +337,8 @@ nir_lower_blend_instr(nir_builder *b, nir_instr *instr, void *data)
|
|||
|
||||
/* TODO: Extending to MRT */
|
||||
nir_variable *var = nir_intrinsic_get_var(intr, 0);
|
||||
if (var->data.location != FRAG_RESULT_COLOR)
|
||||
if (var->data.location != FRAG_RESULT_COLOR &&
|
||||
var->data.location < FRAG_RESULT_DATA0)
|
||||
return false;
|
||||
|
||||
b->cursor = nir_before_instr(instr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue