aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_state_fs.h
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2013-08-13 01:42:37 -0400
committerZack Rusin <[email protected]>2013-08-14 18:23:36 -0400
commit27cedd8aecccea808a35ef297477cac5fe87e476 (patch)
treeab37abf3b418f4125e8773826f69056c22db9f99 /src/gallium/drivers/llvmpipe/lp_state_fs.h
parenta3ae5dc7dd5c2f8893f86a920247e690e550ebd4 (diff)
llvmpipe: fix pipeline statistics with a null ps
If the fragment shader is null then pixel shader invocations have to be equal to zero. And if we're running a null ps then clipper invocations and primitives should be equal to zero but only if both stancil and depth testing are disabled. Signed-off-by: Zack Rusin <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_state_fs.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_fs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.h b/src/gallium/drivers/llvmpipe/lp_state_fs.h
index 33140901c18..aac45266017 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.h
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.h
@@ -97,6 +97,7 @@ struct lp_fragment_shader_variant
struct lp_fragment_shader_variant_key key;
boolean opaque;
+ uint8_t ps_inv_multiplier;
struct gallivm_state *gallivm;
@@ -148,5 +149,8 @@ void
llvmpipe_remove_shader_variant(struct llvmpipe_context *lp,
struct lp_fragment_shader_variant *variant);
+boolean
+llvmpipe_rasterization_disabled(struct llvmpipe_context *lp);
+
#endif /* LP_STATE_FS_H_ */