[Intel-gfx] [PATCH] intel: Fix stencil buffer to be W tiled
Paul Menzel
paulepanter at users.sourceforge.net
Mon Jul 18 10:20:02 CEST 2011
Am Montag, den 18.07.2011, 00:55 -0700 schrieb Chad Versace:
[…]
> diff --git a/src/mesa/drivers/dri/intel/intel_span.c b/src/mesa/drivers/dri/intel/intel_span.c
> index 153803f..d306432 100644
> --- a/src/mesa/drivers/dri/intel/intel_span.c
> +++ b/src/mesa/drivers/dri/intel/intel_span.c
> @@ -131,38 +131,77 @@ intel_set_span_functions(struct intel_context *intel,
> int miny = 0; \
> int maxx = rb->Width; \
> int maxy = rb->Height; \
> - int stride = rb->RowStride; \
> - uint8_t *buf = rb->Data; \
> + \
> + /* \
> + * Here we ignore rb->Data and rb->RowStride as set by \
> + * intelSpanRenderStart. Since intel_offset_S8 decodes the W tile \
> + * manually, the region's *real* base address and stride is \
> + * required. \
> + */ \
> + struct intel_renderbuffer *irb = intel_renderbuffer(rb); \
> + uint8_t *buf = irb->region->buffer->virtual; \
There are alignment/white space issues above.
> + unsigned stride = irb->region->pitch; \
> + unsigned height = 2 * irb->region->height; \
> + bool flip = rb->Name == 0; \
[…]
Thanks,
Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20110718/2330ed3e/attachment.sig>
More information about the Intel-gfx
mailing list