summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-09-10 10:51:46 -0700
committerJason Ekstrand <[email protected]>2015-09-15 12:38:48 -0700
commit47739c7df430664c3a998163a1e8a4a5e1901691 (patch)
treed6fa66bfb82d9e2e73b7ad755a7abae1eb84cadd /src/glsl/nir/nir.h
parent2458ea95c5676807a064f24ec720f12506975402 (diff)
nir: Add a fdot instruction that replicates the result to a vec4
Fortunately, nir_constant_expr already auto-splats if "dst" never shows up in the constant expression field so we don't need to do anything there. Reviewed-by: Connor Abbott <[email protected]> Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r--src/glsl/nir/nir.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index 3f693b17fb1..4e4543ad5ec 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -1434,6 +1434,12 @@ typedef struct nir_shader_compiler_options {
/* lower {slt,sge,seq,sne} to {flt,fge,feq,fne} + b2f: */
bool lower_scmp;
+ /* Does the native fdot instruction replicate its result for four
+ * components? If so, then opt_algebraic_late will turn all fdotN
+ * instructions into fdot_replicatedN instructions.
+ */
+ bool fdot_replicates;
+
/**
* Does the driver support real 32-bit integers? (Otherwise, integers
* are simulated by floats.)