[Mesa-dev] [PATCH 3/3] r600g: untiled window-system buffers should be LINEAR_ALIGNED

Alex Deucher alexdeucher at gmail.com
Tue Nov 13 05:37:23 PST 2012


On Mon, Nov 12, 2012 at 6:43 PM, Marek Olšák <maraeo at gmail.com> wrote:
> though I guess the DDX allocates them as LINEAR_GENERAL

At one point I changed the ddx to use LINEAR_ALIGNED, but it might
have gotten changed back at some point.  Shouldn't be too hard to fix
up.

Alex

> ---
>  src/gallium/drivers/r600/r600_texture.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
> index 7e48f27..42010bf 100644
> --- a/src/gallium/drivers/r600/r600_texture.c
> +++ b/src/gallium/drivers/r600/r600_texture.c
> @@ -604,7 +604,7 @@ struct pipe_resource *r600_texture_from_handle(struct pipe_screen *screen,
>         else if (micro == RADEON_LAYOUT_TILED)
>                 array_mode = V_0280A0_ARRAY_1D_TILED_THIN1;
>         else
> -               array_mode = 0;
> +               array_mode = V_038000_ARRAY_LINEAR_ALIGNED;
>
>         r = r600_init_surface(rscreen, &surface, templ, array_mode, false);
>         if (r) {
> --
> 1.7.9.5
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list