diff options
author | Keith Whitwell <keithw@vmware.com> | 2010-02-02 15:34:01 +0000 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2010-02-03 10:36:55 +0000 |
commit | a9cdae2ae07ee4a465f29eb0bff1e1e494345c69 (patch) | |
tree | 2037544bc1cdb8b4b15b51d0ef06e6591ff64a2b /src/gallium/drivers/svga/svga_tgsi_emit.h | |
parent | fc3efccdc67390847fc544f97dbdb1826442ae9a (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.h | 2 |
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; |