From: Iago Toral Quiroga Date: Tue, 16 Jul 2019 07:44:52 +0000 (+0200) Subject: nir: add a V3D-specific intrinsic for per-sample color writes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=50016d77184dd12dc36efdc60a64759f66319ed5;p=mesa.git 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 --- 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], [])