radeon: don't take the stencil-specific codepath for buffers without stencil

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
main
Marek Olšák 2012-09-29 15:10:33 +02:00
parent 2426a6a711
commit b3d90bbc1d
1 changed files with 1 additions and 1 deletions

View File

@ -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
*/