mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
iris: store copy of the border color in the border color hash table
Color can be allocated on the stack since809a81ec3a. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3909 Fixes:809a81ec3a("iris: Properly support alpha and luminance-alpha formats") Debugged-by: Filip Strömbäck Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7885> (cherry picked from commit90515f90c8)
This commit is contained in:
parent
99769eb716
commit
07a6a627b3
2 changed files with 2 additions and 2 deletions
|
|
@ -607,7 +607,7 @@
|
||||||
"description": "iris: store copy of the border color in the border color hash table",
|
"description": "iris: store copy of the border color in the border color hash table",
|
||||||
"nominated": true,
|
"nominated": true,
|
||||||
"nomination_type": 1,
|
"nomination_type": 1,
|
||||||
"resolution": 0,
|
"resolution": 1,
|
||||||
"master_sha": null,
|
"master_sha": null,
|
||||||
"because_sha": "809a81ec3a0b8666ec426a88b86fb133ae5f1bcb"
|
"because_sha": "809a81ec3a0b8666ec426a88b86fb133ae5f1bcb"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,7 @@ iris_upload_border_color(struct iris_context *ice,
|
||||||
memcpy(pool->map + offset, color, sizeof(*color));
|
memcpy(pool->map + offset, color, sizeof(*color));
|
||||||
pool->insert_point += BC_ALIGNMENT;
|
pool->insert_point += BC_ALIGNMENT;
|
||||||
|
|
||||||
_mesa_hash_table_insert_pre_hashed(pool->ht, hash, color,
|
_mesa_hash_table_insert_pre_hashed(pool->ht, hash, pool->map + offset,
|
||||||
(void *) (uintptr_t) offset);
|
(void *) (uintptr_t) offset);
|
||||||
return offset;
|
return offset;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue