mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
i965/fs: Use the builder directly for the gen6 interpolation add(32)
Now that we can create builders with a bigger width than their parent as long as it's exec_all, we don't need to create the instruction manually. Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
parent
dabec9c293
commit
80fc9c01df
1 changed files with 5 additions and 6 deletions
|
|
@ -1358,12 +1358,11 @@ fs_visitor::emit_interpolation_setup_gen6()
|
||||||
*/
|
*/
|
||||||
fs_reg int_pixel_xy(GRF, alloc.allocate(dispatch_width / 8),
|
fs_reg int_pixel_xy(GRF, alloc.allocate(dispatch_width / 8),
|
||||||
BRW_REGISTER_TYPE_UW);
|
BRW_REGISTER_TYPE_UW);
|
||||||
fs_inst *add =
|
|
||||||
new (mem_ctx) fs_inst(BRW_OPCODE_ADD, dispatch_width * 2,
|
const fs_builder dbld = abld.exec_all().group(dispatch_width * 2, 0);
|
||||||
int_pixel_xy,
|
dbld.ADD(int_pixel_xy,
|
||||||
fs_reg(stride(suboffset(g1_uw, 4), 1, 4, 0)),
|
fs_reg(stride(suboffset(g1_uw, 4), 1, 4, 0)),
|
||||||
fs_reg(brw_imm_v(0x11001010)));
|
fs_reg(brw_imm_v(0x11001010)));
|
||||||
abld.exec_all().emit(add);
|
|
||||||
|
|
||||||
this->pixel_x = vgrf(glsl_type::float_type);
|
this->pixel_x = vgrf(glsl_type::float_type);
|
||||||
this->pixel_y = vgrf(glsl_type::float_type);
|
this->pixel_y = vgrf(glsl_type::float_type);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue