[Mesa-dev] [PATCH 1/1] r600, compute: Do not overwrite pipe_resource.screen

Nicolai Hähnle nhaehnle at gmail.com
Sat Feb 6 02:18:15 UTC 2016


On 05.02.2016 17:54, Jan Vesely wrote:
> found by inspection.
>
> Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>

Pushed, thanks!

> ---
>   src/gallium/drivers/r600/evergreen_compute.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c
> index bc27333..3b4f139 100644
> --- a/src/gallium/drivers/r600/evergreen_compute.c
> +++ b/src/gallium/drivers/r600/evergreen_compute.c
> @@ -967,8 +967,8 @@ struct pipe_resource *r600_compute_global_buffer_create(
>   			templ->array_size);
>
>   	result->base.b.vtbl = &r600_global_buffer_vtbl;
> -	result->base.b.b.screen = screen;
>   	result->base.b.b = *templ;
> +	result->base.b.b.screen = screen;
>   	pipe_reference_init(&result->base.b.b.reference, 1);
>
>   	size_in_dw = (templ->width0+3) / 4;
>


More information about the mesa-dev mailing list