<div dir="ltr">Acked-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 3, 2017 at 12:29 PM, Kenneth Graunke <span dir="ltr"><<a href="mailto:kenneth@whitecape.org" target="_blank">kenneth@whitecape.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We moved to INTEL_SCALAR_* when we added more than a single stage, but<br>
never went back and converted the VS to work that way. Be consistent.<br>
<br>
Also update the documentation to actually mention these debug variables.<br>
---<br>
docs/envvars.html | 2 +-<br>
src/intel/common/gen_debug.c | 1 -<br>
src/intel/common/gen_debug.h | 2 +-<br>
src/intel/compiler/brw_<wbr>compiler.c | 2 +-<br>
4 files changed, 3 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/docs/envvars.html b/docs/envvars.html<br>
index a970a6668a1..9e2f8163644 100644<br>
--- a/docs/envvars.html<br>
+++ b/docs/envvars.html<br>
@@ -200,10 +200,10 @@ See the <a href="xlibdriver.html">Xlib software driver page</a> for details.<br>
<li>tes - dump shader assembly for tessellation evaluation shaders</li><br>
<li>tex - emit messages about textures.</li><br>
<li>urb - emit messages about URB setup</li><br>
- <li>vec4 - force vec4 mode in vertex shader</li><br>
<li>vert - emit messages about vertex assembly</li><br>
<li>vs - dump shader assembly for vertex shaders</li><br>
</ul><br>
+<li>INTEL_SCALAR_VS (or TCS, TES, GS) - force scalar/vec4 mode for a shader stage (Gen8-9 only)</li><br>
<li>INTEL_PRECISE_TRIG - if set to 1, true or yes, then the driver prefers<br>
accuracy over performance in trig functions.</li><br>
</ul><br>
diff --git a/src/intel/common/gen_debug.c b/src/intel/common/gen_debug.c<br>
index f5702f009bc..b604d56ef86 100644<br>
--- a/src/intel/common/gen_debug.c<br>
+++ b/src/intel/common/gen_debug.c<br>
@@ -68,7 +68,6 @@ static const struct debug_control debug_control[] = {<br>
{ "optimizer", DEBUG_OPTIMIZER },<br>
{ "ann", DEBUG_ANNOTATION },<br>
{ "no8", DEBUG_NO8 },<br>
- { "vec4", DEBUG_VEC4VS },<br>
{ "spill_fs", DEBUG_SPILL_FS },<br>
{ "spill_vec4", DEBUG_SPILL_VEC4 },<br>
{ "cs", DEBUG_CS },<br>
diff --git a/src/intel/common/gen_debug.h b/src/intel/common/gen_debug.h<br>
index f7f59c9b5d8..d290303682e 100644<br>
--- a/src/intel/common/gen_debug.h<br>
+++ b/src/intel/common/gen_debug.h<br>
@@ -69,7 +69,7 @@ extern uint64_t INTEL_DEBUG;<br>
#define DEBUG_OPTIMIZER (1ull << 25)<br>
#define DEBUG_ANNOTATION (1ull << 26)<br>
#define DEBUG_NO8 (1ull << 27)<br>
-#define DEBUG_VEC4VS (1ull << 28)<br>
+/* Hole - feel free to reuse (1ull << 28) */<br>
#define DEBUG_SPILL_FS (1ull << 29)<br>
#define DEBUG_SPILL_VEC4 (1ull << 30)<br>
#define DEBUG_CS (1ull << 31)<br>
diff --git a/src/intel/compiler/brw_<wbr>compiler.c b/src/intel/compiler/brw_<wbr>compiler.c<br>
index aa896b9a336..f31f29d2ade 100644<br>
--- a/src/intel/compiler/brw_<wbr>compiler.c<br>
+++ b/src/intel/compiler/brw_<wbr>compiler.c<br>
@@ -118,7 +118,7 @@ brw_compiler_create(void *mem_ctx, const struct gen_device_info *devinfo)<br>
compiler->scalar_stage[i] = true;<br>
} else {<br>
compiler->scalar_stage[MESA_<wbr>SHADER_VERTEX] =<br>
- devinfo->gen >= 8 && !(INTEL_DEBUG & DEBUG_VEC4VS);<br>
+ devinfo->gen >= 8 && env_var_as_boolean("INTEL_<wbr>SCALAR_VS", true);<br>
compiler->scalar_stage[MESA_<wbr>SHADER_TESS_CTRL] =<br>
devinfo->gen >= 8 && env_var_as_boolean("INTEL_<wbr>SCALAR_TCS", true);<br>
compiler->scalar_stage[MESA_<wbr>SHADER_TESS_EVAL] =<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.13.0<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>