Skip to content

nir: Add intrinsics for multisampling on AGX

Alyssa Rosenzweig requested to merge alyssa/mesa:nir/msaa-agx into main

sample_mask_agx maps to the AGX instruction used to write out a sample mask.

api_sample_mask_agx is a system value that returns the value of glSampleMask (or its Vulkan equivalent), used to lower glSampleMask (etc). This is distinct from sample_mask_in, which we map to the hardware thing and AND with this as a lowering.

sample_positions_agx is a system value returning the sample positions in a packed fixed-point format matching the hardware register, used to lower gl_SamplePositions.

Signed-off-by: Alyssa Rosenzweig alyssa@rosenzweig.io

Merge request reports