mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
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:
parent
4026744fcb
commit
e8df89d2c5
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue