Kenneth Graunke <kenn...@whitecape.org> writes: > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77221 > Signed-off-by: Kenneth Graunke <kenn...@whitecape.org>
> diff --git a/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp > b/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp > index dae4026..fffde0c 100644 > --- a/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp > +++ b/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp > @@ -821,6 +821,38 @@ > gen8_fs_generator::generate_unpack_half_2x16_split(fs_inst *inst, > } > > void > +gen8_fs_generator::generate_untyped_atomic(fs_inst *ir, > + struct brw_reg dst, > + struct brw_reg atomic_op, > + struct brw_reg surf_index) > +{ > + assert(atomic_op.file == BRW_IMMEDIATE_VALUE && > + atomic_op.type == BRW_REGISTER_TYPE_UD && > + surf_index.file == BRW_IMMEDIATE_VALUE && > + surf_index.type == BRW_REGISTER_TYPE_UD); > + assert((atomic_op.dw1.ud & ~0xf) == 0); > + > + unsigned msg_control = > + atomic_op.dw1.ud | /* Atomic Operation Type: BRW_AOP_* */ > + ((dispatch_width == 16 ? 0 : 1) << 4) | /* Slot Group: SIMD8 or SIMD16 > */ again, unlike typed atomics, I see this field being called "simd mode"
pgpjZwPiI46_o.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev