gallium/radeon: fix initialization of new resource bindless fields
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>
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user