mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-27 14:10:25 +01:00
asahi: fix imageSize of null image
Fixes faulting in imageAtomicAdd/unbound image test. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26614>
This commit is contained in:
parent
0cd032e4bb
commit
b13e3adb04
1 changed files with 7 additions and 0 deletions
|
|
@ -13,6 +13,13 @@ libagx_txs(constant struct agx_texture_packed *ptr, uint16_t lod,
|
|||
{
|
||||
agx_unpack(NULL, ptr, TEXTURE, d);
|
||||
|
||||
/* From the Vulkan spec:
|
||||
*
|
||||
* OpImageQuery*... return 0 if the bound descriptor is a null descriptor
|
||||
*/
|
||||
if (d.null)
|
||||
return 0;
|
||||
|
||||
/* Buffer textures are lowered to 2D so the original size is irrecoverable.
|
||||
* Instead, we stash it in the software-defined section.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue