asahi: fix warning
../src/gallium/drivers/asahi/agx_uniforms.c:60:10: warning: taking address of packed member of ‘struct agx_draw_uniforms’ may result in an unaligned pointer value [-Waddress-of-packed-member] 60 | &batch->uniforms.attrib_base[i]); Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30633>
This commit is contained in:
@@ -53,11 +53,13 @@ agx_upload_vbos(struct agx_batch *batch)
|
||||
|
||||
for (unsigned i = 0; i < PIPE_MAX_ATTRIBS; ++i) {
|
||||
unsigned buf = attribs->buffers[i];
|
||||
uint64_t addr;
|
||||
|
||||
batch->uniforms.attrib_clamp[i] = agx_calculate_vbo_clamp(
|
||||
buffers[buf], sink, attribs->key[i].format, buf_sizes[buf],
|
||||
attribs->key[i].stride, attribs->src_offsets[i],
|
||||
&batch->uniforms.attrib_base[i]);
|
||||
attribs->key[i].stride, attribs->src_offsets[i], &addr);
|
||||
|
||||
batch->uniforms.attrib_base[i] = addr;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user