agx: Plumb in nir_intrinsic_load_sample_mask_in
We have a special register for this, although this will need some lowering for glSampleMask. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23480>
This commit is contained in:

committed by
Marge Bot

parent
6fd16dd7c9
commit
73bbf43bc0
@@ -882,6 +882,9 @@ agx_emit_intrinsic(agx_builder *b, nir_intrinsic_instr *instr)
|
||||
case nir_intrinsic_load_back_face_agx:
|
||||
return agx_get_sr_to(b, dst, AGX_SR_BACKFACING);
|
||||
|
||||
case nir_intrinsic_load_sample_mask_in:
|
||||
return agx_get_sr_to(b, dst, AGX_SR_INPUT_SAMPLE_MASK);
|
||||
|
||||
case nir_intrinsic_load_helper_invocation:
|
||||
/* Compare special register to zero. We could lower this in NIR (letting
|
||||
* us fold in an inot) but meh?
|
||||
|
@@ -134,6 +134,7 @@ SR = enum("sr", {
|
||||
80: 'thread_position_in_grid.x',
|
||||
81: 'thread_position_in_grid.y',
|
||||
82: 'thread_position_in_grid.z',
|
||||
124: 'input_sample_mask',
|
||||
144: 'opfifo_cmd',
|
||||
146: 'opfifo_data_l',
|
||||
147: 'opfifo_data_h',
|
||||
|
Reference in New Issue
Block a user