[Mesa-dev] [PATCH] gallium/radeon: fix initialization of new resource bindless fields

Marek Olšák maraeo at gmail.com
Wed Jun 14 20:17:14 UTC 2017


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Wed, Jun 14, 2017 at 9:11 PM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> r600_resource objects are not calloc'd.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/gallium/drivers/radeon/r600_buffer_common.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/gallium/drivers/radeon/r600_buffer_common.c b/src/gallium/drivers/radeon/r600_buffer_common.c
> index fb74b45d2fa..5336f55cb57 100644
> --- a/src/gallium/drivers/radeon/r600_buffer_common.c
> +++ b/src/gallium/drivers/radeon/r600_buffer_common.c
> @@ -110,6 +110,8 @@ void r600_init_resource_fields(struct r600_common_screen *rscreen,
>         res->bo_size = size;
>         res->bo_alignment = alignment;
>         res->flags = 0;
> +       res->texture_handle_allocated = false;
> +       res->image_handle_allocated = false;
>
>         switch (res->b.b.usage) {
>         case PIPE_USAGE_STREAM:
> --
> 2.13.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list