mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 19:10:14 +01:00
intel/elk: Use the pixel_coord UW x/y values for noncoherent FB reads.
No need to force generating the float cast just to turn it back to an int. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25190>
This commit is contained in:
parent
1134cdc198
commit
241bc5da70
1 changed files with 2 additions and 2 deletions
|
|
@ -3187,8 +3187,8 @@ emit_non_coherent_fb_read(nir_to_elk_state &ntb, const fs_builder &bld, const el
|
|||
|
||||
/* Calculate the fragment coordinates. */
|
||||
const elk_fs_reg coords = bld.vgrf(ELK_REGISTER_TYPE_UD, 3);
|
||||
bld.MOV(offset(coords, bld, 0), s.pixel_x);
|
||||
bld.MOV(offset(coords, bld, 1), s.pixel_y);
|
||||
bld.MOV(offset(coords, bld, 0), s.uw_pixel_x);
|
||||
bld.MOV(offset(coords, bld, 1), s.uw_pixel_y);
|
||||
bld.MOV(offset(coords, bld, 2), fetch_render_target_array_index(bld));
|
||||
|
||||
/* Calculate the sample index and MCS payload when multisampling. Luckily
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue