mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 22:10:38 +02:00
nir/lower_fragcolor: Handle fp16 outputs
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10391>
This commit is contained in:
parent
49c6157b15
commit
0f4ba349e9
1 changed files with 1 additions and 2 deletions
|
|
@ -86,8 +86,7 @@ lower_fragcolor_instr(nir_builder *b, nir_instr *intr, UNUSED void *data)
|
|||
char name[28];
|
||||
snprintf(name, sizeof(name), name_tmpl, i);
|
||||
nir_variable *out_color = nir_variable_create(b->shader, nir_var_shader_out,
|
||||
glsl_vec4_type(),
|
||||
name);
|
||||
out->type, name);
|
||||
out_color->data.location = FRAG_RESULT_DATA0 + i;
|
||||
out_color->data.driver_location = i;
|
||||
out_color->data.index = out->data.index;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue