summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir.h
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2016-07-19 20:33:46 -0700
committerFrancisco Jerez <currojerez@riseup.net>2016-08-25 18:33:29 -0700
commit97ac3eba58a7d11e171475f4a209cfdb3578b21d (patch)
treed6edf8186e184a6cb04abd2cb63825c863e56c71 /src/compiler/nir/nir.h
parent00c72acba5a98965622000d949b6835f28a9d71a (diff)
downloadexternal_mesa3d-97ac3eba58a7d11e171475f4a209cfdb3578b21d.zip
external_mesa3d-97ac3eba58a7d11e171475f4a209cfdb3578b21d.tar.gz
external_mesa3d-97ac3eba58a7d11e171475f4a209cfdb3578b21d.tar.bz2
nir: Pass through fb_fetch_output and OutputsRead from GLSL IR.
The NIR representation of framebuffer fetch is the same as the GLSL IR's until interface variables are lowered away, at which point it will be translated to load output intrinsics. The GLSL-to-NIR pass just needs to copy the bits over to the NIR program. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r--src/compiler/nir/nir.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 5e527d8..1407b2d 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -227,6 +227,13 @@ typedef struct nir_variable {
unsigned location_frac:2;
/**
+ * Whether this is a fragment shader output implicitly initialized with
+ * the previous contents of the specified render target at the
+ * framebuffer location corresponding to this shader invocation.
+ */
+ unsigned fb_fetch_output:1;
+
+ /**
* \brief Layout qualifier for gl_FragDepth.
*
* This is not equal to \c ir_depth_layout_none if and only if this
@@ -1776,6 +1783,8 @@ typedef struct nir_shader_info {
uint64_t double_inputs_read;
/* Which outputs are actually written */
uint64_t outputs_written;
+ /* Which outputs are actually read */
+ uint64_t outputs_read;
/* Which system values are actually read */
uint64_t system_values_read;