diff options
author | Iago Toral Quiroga <[email protected]> | 2019-07-16 09:44:52 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2019-07-18 08:59:35 +0200 |
commit | 50016d77184dd12dc36efdc60a64759f66319ed5 (patch) | |
tree | aa840a48ef5a83dbce0671e8d7f88ea2a1baea66 /src/compiler/nir/nir_intrinsics.py | |
parent | ba520b00c4e0c8b403a20dd6a8978110e2423940 (diff) |
nir: add a V3D-specific intrinsic for per-sample color writes
For per-sample color writes we need the output intrinsic to pack the
sample index, which is not provided with regular store_output intrinsics
unless we figured out a way to encode it into the base or the offset.
v2:
- Drop the writemask (Eric)
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_intrinsics.py')
-rw-r--r-- | src/compiler/nir/nir_intrinsics.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_intrinsics.py b/src/compiler/nir/nir_intrinsics.py index a37297ca440..0ae5c12a280 100644 --- a/src/compiler/nir/nir_intrinsics.py +++ b/src/compiler/nir/nir_intrinsics.py @@ -785,3 +785,12 @@ load("raw_output_pan", 0, [], [CAN_ELIMINATE, CAN_REORDER]) # src[] = { render_target } # BASE = sample index load("tlb_color_v3d", 1, [BASE, COMPONENT], []) + +# V3D-specific instrinc for per-sample tile buffer color writes. +# +# The driver backend needs to identify per-sample color writes and emit +# specific code for them. +# +# src[] = { value, render_target } +# BASE = sample index +store("tlb_sample_color_v3d", 2, [BASE, COMPONENT, TYPE], []) |