mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
asahi: add static assert
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
2be37d1c96
commit
a8857028bb
1 changed files with 2 additions and 0 deletions
|
|
@ -2581,6 +2581,8 @@ agx_upload_samplers(struct agx_batch *batch, struct agx_compiled_shader *cs,
|
|||
*out = sampler->desc;
|
||||
|
||||
if (custom_borders) {
|
||||
STATIC_ASSERT(sizeof(sampler->border) == AGX_BORDER_LENGTH);
|
||||
|
||||
memcpy(out_sampler + AGX_SAMPLER_LENGTH, &sampler->border,
|
||||
AGX_BORDER_LENGTH);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue