[Mesa-dev] [PATCH 1/8] intel: Drop check for wrapped_depth in RB mapping.

Kenneth Graunke kenneth at whitecape.org
Wed Dec 14 12:20:13 PST 2011


On 12/08/2011 01:39 PM, Eric Anholt wrote:
> This used to be needed because irb->mt would be unset for fake packed
> depth/stencil, but no longer.
> ---
>  src/mesa/drivers/dri/intel/intel_fbo.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c
> index 4fcde23..1980355 100644
> --- a/src/mesa/drivers/dri/intel/intel_fbo.c
> +++ b/src/mesa/drivers/dri/intel/intel_fbo.c
> @@ -122,7 +122,7 @@ intel_map_renderbuffer(struct gl_context *ctx,
>     int stride;
>  
>     /* We sometimes get called with this by our intel_span.c usage. */
> -   if (!irb->mt && !irb->wrapped_depth) {
> +   if (!irb->mt) {
>        *out_map = NULL;
>        *out_stride = 0;
>        return;

This series looks like a nice cleanup.  I'm not terribly confident in my
understanding of this code, but it looks okay to me.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>


More information about the mesa-dev mailing list