diff --git a/src/gallium/drivers/asahi/agx_uniforms.c b/src/gallium/drivers/asahi/agx_uniforms.c index 31188a278b5..c798191c13f 100644 --- a/src/gallium/drivers/asahi/agx_uniforms.c +++ b/src/gallium/drivers/asahi/agx_uniforms.c @@ -75,6 +75,11 @@ agx_push_location_direct(struct agx_batch *batch, struct agx_push push, struct pipe_vertex_buffer vb = ctx->vertex_buffers[push.vbo]; assert(!vb.is_user_buffer); + if (!vb.buffer.resource) { + *address = 0; + return ptr.gpu; + } + struct agx_resource *rsrc = agx_resource(vb.buffer.resource); agx_batch_reads(batch, rsrc);