From e8df89d2c511d6c787636e71ec60c35385ae7041 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 14 Jun 2017 21:11:19 +0200 Subject: [PATCH] gallium/radeon: fix initialization of new resource bindless fields MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit r600_resource objects are not calloc'd. Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák --- 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.30.2