mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 18:20:10 +01:00
freedreno: Fix helgrind complaint on shader-db key setup.
If the variable's going to be static, we shouldn't be memsetting it from every thread and instead just have it in the data section. Reviewed-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
aac492901a
commit
65aeeae670
1 changed files with 1 additions and 2 deletions
|
|
@ -135,8 +135,7 @@ ir3_shader_create(struct ir3_compiler *compiler,
|
|||
* (as otherwise nothing will trigger the shader to be
|
||||
* actually compiled)
|
||||
*/
|
||||
static struct ir3_shader_key key;
|
||||
memset(&key, 0, sizeof(key));
|
||||
static struct ir3_shader_key key; /* static is implicitly zeroed */
|
||||
ir3_shader_variant(shader, key, false, debug);
|
||||
|
||||
if (nir->info.stage != MESA_SHADER_FRAGMENT)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue