mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 13:40:11 +01:00
brw: Emit immediate value for MAD in canonical position
No shader-db changes on any Intel platform. fossil-db: Meteor Lake, DG2, Tiger Lake, and Ice Lake had similar results. (Meteor Lake shown) Totals: Cycle count: 25096109024 -> 25096108722 (-0.00%); split: -0.00%, +0.00% Totals from 4106 (0.51% of 797610) affected shaders: Cycle count: 63266176 -> 63265874 (-0.00%); split: -0.01%, +0.01% Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32436>
This commit is contained in:
parent
d9b019b683
commit
e3e58d6f48
1 changed files with 2 additions and 2 deletions
|
|
@ -453,8 +453,8 @@ brw_emit_interpolation_setup(fs_visitor &s)
|
|||
abld.MOV(f_cps_height, u32_cps_height);
|
||||
|
||||
/* Center in the middle of the coarse pixel. */
|
||||
abld.MAD(float_pixel_x, float_pixel_x, brw_imm_f(0.5f), f_cps_width);
|
||||
abld.MAD(float_pixel_y, float_pixel_y, brw_imm_f(0.5f), f_cps_height);
|
||||
abld.MAD(float_pixel_x, float_pixel_x, f_cps_width, brw_imm_f(0.5f));
|
||||
abld.MAD(float_pixel_y, float_pixel_y, f_cps_height, brw_imm_f(0.5f));
|
||||
|
||||
coarse_z = abld.vgrf(BRW_TYPE_F);
|
||||
abld.MAD(coarse_z, z_c0, z_cx, float_pixel_x);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue