search for: nv50tcl_clear_depth_bit

Displaying 1 result from an estimated 1 matches for "nv50tcl_clear_depth_bit".

2009 Apr 10
0
[PATCH/Gallium] nv50_clear again (might work better)
...eca65a8..d0785fc 100644 --- a/src/gallium/drivers/nv50/nv50_clear.c +++ b/src/gallium/drivers/nv50/nv50_clear.c @@ -26,6 +26,13 @@ #include "nv50_context.h" +/* If clearing the stencil buffer is not requested, NVIDIA clears both + anyway as long as stencil testing is off. */ +#define NV50TCL_CLEAR_DEPTH_BITS 0x01 +#define NV50TCL_CLEAR_STENCIL_BITS 0x02 +#define NV50TCL_CLEAR_DEPTH_STENCIL_BITS 0x03 +#define NV50TCL_CLEAR_COLOR_BITS(i) (0x3c + (0x40 * (i))) + void nv50_clear(struct pipe_context *pipe, unsigned buffers, const float *rgba, double depth, unsigned stencil) @@ -40,26 +47,32 @@ nv50_...