[Mesa-dev] [PATCH 1/1] r600g: Ignore format for PIPE_BUFFER targets

Marek Olšák maraeo at gmail.com
Fri Feb 5 19:24:53 UTC 2016


Pushed, thanks.

Marek

On Fri, Feb 5, 2016 at 6:01 PM, Jan Vesely <jan.vesely at rutgers.edu> wrote:
> Fixes compute since 7dd31b81fee7fe40bd09cf3fbc324fcc32782479
> gallium/radeon: support PIPE_CAP_SURFACE_REINTERPRET_BLOCKS
>
> Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
> ---
>  src/gallium/drivers/radeon/r600_texture.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
> index ebafe3e..c2fd018 100644
> --- a/src/gallium/drivers/radeon/r600_texture.c
> +++ b/src/gallium/drivers/radeon/r600_texture.c
> @@ -1219,7 +1219,7 @@ static struct pipe_surface *r600_create_surface(struct pipe_context *pipe,
>         unsigned width = u_minify(tex->width0, level);
>         unsigned height = u_minify(tex->height0, level);
>
> -       if (templ->format != tex->format) {
> +       if (tex->target != PIPE_BUFFER && templ->format != tex->format) {
>                 const struct util_format_description *tex_desc
>                         = util_format_description(tex->format);
>                 const struct util_format_description *templ_desc
> --
> 2.5.0
>


More information about the mesa-dev mailing list