panfrost: Ensure compute shader_meta is zeroed
In theory the hardware doesn't care but it'll make for easier traces. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3835>
This commit is contained in:
parent
058faf5a4b
commit
418ca5dc1a
|
@ -52,7 +52,8 @@ panfrost_create_compute_state(
|
|||
so->variant_count = 1;
|
||||
so->active_variant = 0;
|
||||
|
||||
v->tripipe = malloc(sizeof(struct mali_shader_meta));
|
||||
/* calloc, instead of malloc - to zero unused fields */
|
||||
v->tripipe = CALLOC_STRUCT(mali_shader_meta);
|
||||
|
||||
if (cso->ir_type == PIPE_SHADER_IR_NIR_SERIALIZED) {
|
||||
struct blob_reader reader;
|
||||
|
|
Loading…
Reference in New Issue