gallium/radeon: fix initialization of new resource bindless fields
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 14 Jun 2017 19:11:19 +0000 (21:11 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 15 Jun 2017 09:56:21 +0000 (11:56 +0200)
r600_resource objects are not calloc'd.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_buffer_common.c

index fb74b45d2fa43156f4548e48a954da3c80595563..5336f55cb5720effbd7744f8a06002897e96a2a7 100644 (file)
@@ -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: