From: Marek Olšák Date: Sat, 29 Sep 2012 13:10:33 +0000 (+0200) Subject: radeon: don't take the stencil-specific codepath for buffers without stencil X-Git-Tag: freedesktop-libdrm-2.4.41~29 X-Git-Url: https://git.ti.com/gitweb?p=glsdk%2Flibdrm.git;a=commitdiff_plain;h=b3d90bbc1d43bb11d8de25109f403b1b30533c34 radeon: don't take the stencil-specific codepath for buffers without stencil Reviewed-by: Alex Deucher --- diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c index 80b15056..03b1c5df 100644 --- a/radeon/radeon_surface.c +++ b/radeon/radeon_surface.c @@ -911,7 +911,7 @@ static int eg_surface_best(struct radeon_surface_manager *surf_man, * fmask buffer has different optimal value figure them out once we * use it. */ - if (surf->flags & (RADEON_SURF_ZBUFFER | RADEON_SURF_SBUFFER)) { + if (surf->flags & RADEON_SURF_SBUFFER) { /* assume 1 bytes for stencil, we optimize for stencil as stencil * and depth shares surface values */