mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
radv: allow input attachment to use pixel coord optimization
The vectorized f2i32 would block nir_opt_frag_coord_to_pixel_coord. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40985>
This commit is contained in:
parent
4b81cb6206
commit
ae8f83d465
1 changed files with 2 additions and 2 deletions
|
|
@ -135,9 +135,9 @@ lower_load_input_attachment(nir_builder *b, nir_intrinsic_instr *intrin, void *s
|
|||
case nir_intrinsic_load_input_attachment_coord: {
|
||||
b->cursor = nir_before_instr(&intrin->instr);
|
||||
|
||||
nir_def *pos = nir_f2i32(b, nir_load_frag_coord(b));
|
||||
nir_def *pos = nir_load_frag_coord(b);
|
||||
nir_def *layer = nir_load_layer_id(b);
|
||||
nir_def *coord = nir_vec3(b, nir_channel(b, pos, 0), nir_channel(b, pos, 1), layer);
|
||||
nir_def *coord = nir_vec3(b, nir_f2i32(b, nir_channel(b, pos, 0)), nir_f2i32(b, nir_channel(b, pos, 1)), layer);
|
||||
|
||||
nir_def_replace(&intrin->def, coord);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue