diff options
author | Marek Olšák | 2012-09-29 08:10:33 -0500 |
---|---|---|
committer | Marek Olšák | 2012-10-03 10:52:44 -0500 |
commit | b3d90bbc1d43bb11d8de25109f403b1b30533c34 (patch) | |
tree | 00e8c90de1f43eb7819af395b51e2c201601c838 /radeon/radeon_surface.c | |
parent | 2426a6a7112ae62755408a371831eddbe2d89d99 (diff) | |
download | external-libdrm-b3d90bbc1d43bb11d8de25109f403b1b30533c34.tar.gz external-libdrm-b3d90bbc1d43bb11d8de25109f403b1b30533c34.tar.xz external-libdrm-b3d90bbc1d43bb11d8de25109f403b1b30533c34.zip |
radeon: don't take the stencil-specific codepath for buffers without stencil
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'radeon/radeon_surface.c')
-rw-r--r-- | radeon/radeon_surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
911 | * fmask buffer has different optimal value figure them out once we | 911 | * fmask buffer has different optimal value figure them out once we |
912 | * use it. | 912 | * use it. |
913 | */ | 913 | */ |
914 | if (surf->flags & (RADEON_SURF_ZBUFFER | RADEON_SURF_SBUFFER)) { | 914 | if (surf->flags & RADEON_SURF_SBUFFER) { |
915 | /* assume 1 bytes for stencil, we optimize for stencil as stencil | 915 | /* assume 1 bytes for stencil, we optimize for stencil as stencil |
916 | * and depth shares surface values | 916 | * and depth shares surface values |
917 | */ | 917 | */ |