summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/svga/svga_tgsi_emit.h
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2010-02-02 15:34:01 +0000
committerKeith Whitwell <keithw@vmware.com>2010-02-03 10:36:55 +0000
commita9cdae2ae07ee4a465f29eb0bff1e1e494345c69 (patch)
tree2037544bc1cdb8b4b15b51d0ef06e6591ff64a2b /src/gallium/drivers/svga/svga_tgsi_emit.h
parentfc3efccdc67390847fc544f97dbdb1826442ae9a (diff)
svga: texture from lod zero inside dynamic branching
Texture derivatives are potentially undefined inside dynamic branches, so hardwire lod zero in this case. Treating all if/endif and loop constructs as dynamic branches.
Diffstat (limited to 'src/gallium/drivers/svga/svga_tgsi_emit.h')
-rw-r--r--src/gallium/drivers/svga/svga_tgsi_emit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_tgsi_emit.h b/src/gallium/drivers/svga/svga_tgsi_emit.h
index 2557824293..a546065f19 100644
--- a/src/gallium/drivers/svga/svga_tgsi_emit.h
+++ b/src/gallium/drivers/svga/svga_tgsi_emit.h
@@ -79,6 +79,8 @@ struct svga_shader_emitter
int ps30_input_count;
+ int dynamic_branching_level;
+
boolean in_main_func;
boolean created_zero_immediate;