summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan
diff options
context:
space:
mode:
authorSergii Romantsov <[email protected]>2019-09-12 15:28:45 +0300
committerDylan Baker <[email protected]>2019-09-18 09:09:54 -0700
commitd5fe3f73fc1cfa8093955f48e6ecc0e447126cf9 (patch)
treeeaa337f1fc1c86c0f8df89fdbc59f7406fd27c0b /src/amd/vulkan
parent5650308d08a907b0a4545e9f912659d91ba6fd96 (diff)
nir/large_constants: more careful data copying
A filed of nir_variable.location may be equel to -1. That may cause copying to invalid address of list-node, making some internal fields corrupted. Patch fixes segfault during freeing context due to corrupted address of ralloc_header.destructor. v2: copy data if var is constant (Connor Abbott) CC: Caio Marcelo de Oliveira Filho <[email protected]> Fixes: b6d475356846 (nir/large_constants: De-duplicate constants) Signed-off-by: Sergii Romantsov <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111676 Reviewed-by: Connor Abbott <[email protected]> (cherry picked from commit c7b2a2fd363f57bb1ab4d7d6bad786af7e2924ef)
Diffstat (limited to 'src/amd/vulkan')
0 files changed, 0 insertions, 0 deletions