diff options
author | Brian <brian@i915.localnet.net> | 2007-08-01 14:46:07 -0600 |
---|---|---|
committer | Brian <brian@i915.localnet.net> | 2007-08-01 14:46:07 -0600 |
commit | 0eb02a1963a25f6994b730147d0613b03424c11e (patch) | |
tree | c5c2dc736ee8d1de5ac2da60888786e7b8549ec6 /src/mesa/drivers/dri/i915pipe/intel_regions.c | |
parent | cddce60e7b14171f7afb204be5c131ce73ce01c5 (diff) |
More work on glClear.
Add a 'mask' param to region_fill() to help with clearing combined Z/stencil buffers, glColorMask, etc.
Diffstat (limited to 'src/mesa/drivers/dri/i915pipe/intel_regions.c')
-rw-r--r-- | src/mesa/drivers/dri/i915pipe/intel_regions.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i915pipe/intel_regions.c b/src/mesa/drivers/dri/i915pipe/intel_regions.c index e95e745adc..bdbc59e7ac 100644 --- a/src/mesa/drivers/dri/i915pipe/intel_regions.c +++ b/src/mesa/drivers/dri/i915pipe/intel_regions.c @@ -343,7 +343,8 @@ intel_region_fill(struct pipe_context *pipe, struct pipe_region *dst, GLuint dst_offset, GLuint dstx, GLuint dsty, - GLuint width, GLuint height, GLuint color) + GLuint width, GLuint height, + GLuint value, GLuint mask) { intelScreenPrivate *intelScreen = pipe_screen(pipe); struct intel_context *intel = intelScreenContext(intelScreen); @@ -364,7 +365,7 @@ intel_region_fill(struct pipe_context *pipe, intelEmitFillBlit(intel, dst->cpp, dst->pitch, dst->buffer, dst_offset, - dstx, dsty, width, height, color); + dstx, dsty, width, height, value, mask); } /* Attach to a pbo, discarding our data. Effectively zero-copy upload |