summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_jit.h
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2013-05-01 17:54:08 +0200
committerRoland Scheidegger <sroland@vmware.com>2013-05-03 21:36:20 +0200
commitae507b6260f00638b63c22de811cc63b379698bb (patch)
tree55dfcd9f6f8559916bdde5f4e6ae7e4f3fe51468 /src/gallium/drivers/llvmpipe/lp_jit.h
parente495d88453076a4fe552502d66d6a3869ab70e4a (diff)
downloadexternal_mesa3d-ae507b6260f00638b63c22de811cc63b379698bb.zip
external_mesa3d-ae507b6260f00638b63c22de811cc63b379698bb.tar.gz
external_mesa3d-ae507b6260f00638b63c22de811cc63b379698bb.tar.bz2
llvmpipe: get rid of depth swizzling.
Eliminating this we no longer need to copy between linear and swizzled layout. This is probably not quite ideal since it's a bit more work for now, could do some optimizations by moving depth testing outside the fragment shader loop (but tricky for early depth test as we don't have neither the mask nor the interpolated z in the right order handy). The large amount of tile/untile code is no longer needed will be deleted in next commit. No piglit regressions. v2: change a forgotten LAYOUT_NONE to LAYOUT_LINEAR. v3: fix (bogus) uninitialized variable warnings, add comments, fix a bad type Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_jit.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_jit.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_jit.h b/src/gallium/drivers/llvmpipe/lp_jit.h
index 4eddb2a..4e9ca76 100644
--- a/src/gallium/drivers/llvmpipe/lp_jit.h
+++ b/src/gallium/drivers/llvmpipe/lp_jit.h
@@ -193,6 +193,7 @@ enum {
* @param mask mask of visible pixels in block
* @param thread_data task thread data
* @param stride color buffer row stride in bytes
+ * @param depth_stride depth buffer row stride in bytes
*/
typedef void
(*lp_jit_frag_func)(const struct lp_jit_context *context,
@@ -206,7 +207,8 @@ typedef void
void *depth,
uint32_t mask,
struct lp_jit_thread_data *thread_data,
- unsigned *stride);
+ unsigned *stride,
+ unsigned depth_stride);
void