summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-06-14 21:11:19 +0200
committerSamuel Pitoiset <[email protected]>2017-06-15 11:56:21 +0200
commite8df89d2c511d6c787636e71ec60c35385ae7041 (patch)
treea09e4026ec3925ff9ea6b4657f5948b1e7e29e36
parent4026744fcb31f1d27c1b32e6945aadd4da415c6d (diff)
gallium/radeon: fix initialization of new resource bindless fields
r600_resource objects are not calloc'd. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r--src/gallium/drivers/radeon/r600_buffer_common.c2
1 files changed, 2 insertions, 0 deletions
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: