mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 19:40:10 +01:00
ac/nir: do not convert GS outputs to the expected variable size on GFX11
Outputs are always considered 32-bits. Found by inspection. Cc: 22.3 mesa-stable Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19612>
This commit is contained in:
parent
26a6d16db0
commit
d2563e6600
1 changed files with 5 additions and 5 deletions
|
|
@ -2791,12 +2791,12 @@ ngg_gs_export_vertices(nir_builder *b, nir_ssa_def *max_num_out_vtx, nir_ssa_def
|
|||
|
||||
nir_ssa_def *val = nir_channel(b, load, i);
|
||||
|
||||
/* Convert to the expected bit size of the output variable. */
|
||||
unsigned bit_size = glsl_base_type_bit_size(glsl_get_base_type(var->type));
|
||||
if (bit_size != 32)
|
||||
val = nir_u2u(b, val, bit_size);
|
||||
|
||||
if (s->options->gfx_level < GFX11 || is_pos) {
|
||||
/* Convert to the expected bit size of the output variable. */
|
||||
unsigned bit_size = glsl_base_type_bit_size(glsl_get_base_type(var->type));
|
||||
if (bit_size != 32)
|
||||
val = nir_u2u(b, val, bit_size);
|
||||
|
||||
nir_store_output(b, val, nir_imm_int(b, 0), .base = info->base,
|
||||
.io_semantics = io_sem, .component = start + i, .write_mask = 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue