diff mbox

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

Message ID 1348924345-13595-1-git-send-email-maraeo@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Marek Olšák Sept. 29, 2012, 1:12 p.m. UTC
---
 radeon/radeon_surface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alex Deucher Oct. 3, 2012, 3:48 p.m. UTC | #1
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

On Sat, Sep 29, 2012 at 9:12 AM, Marek Olšák <maraeo@gmail.com> wrote:
> ---
>  radeon/radeon_surface.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c
> index 80b1505..03b1c5d 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
>           */
> --
> 1.7.9.5
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
diff mbox

Patch

diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c
index 80b1505..03b1c5d 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
          */