llvmpipe: fix pipeline statistics with a null ps
authorZack Rusin <zackr@vmware.com>
Tue, 13 Aug 2013 05:42:37 +0000 (01:42 -0400)
committerZack Rusin <zackr@vmware.com>
Wed, 14 Aug 2013 22:23:36 +0000 (18:23 -0400)
commit27cedd8aecccea808a35ef297477cac5fe87e476
treeab37abf3b418f4125e8773826f69056c22db9f99
parenta3ae5dc7dd5c2f8893f86a920247e690e550ebd4
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 <zackr@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/llvmpipe/lp_rast.c
src/gallium/drivers/llvmpipe/lp_rast_priv.h
src/gallium/drivers/llvmpipe/lp_setup_line.c
src/gallium/drivers/llvmpipe/lp_setup_point.c
src/gallium/drivers/llvmpipe/lp_setup_tri.c
src/gallium/drivers/llvmpipe/lp_setup_vbuf.c
src/gallium/drivers/llvmpipe/lp_state_fs.c
src/gallium/drivers/llvmpipe/lp_state_fs.h