Module: Mesa
Branch: master
Commit: 50016d77184dd12dc36efdc60a64759f66319ed5
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=50016d77184dd12dc36efdc60a64759f66319ed5

Author: Iago Toral Quiroga <[email protected]>
Date:   Tue Jul 16 09:44:52 2019 +0200

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]>

---

 src/compiler/nir/nir_intrinsics.py | 9 +++++++++
 1 file changed, 9 insertions(+)

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], [])

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to