mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 09:58:05 +02:00
asahi: Add blend constant system value
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10720>
This commit is contained in:
parent
30d1223247
commit
d76ab2b5d6
2 changed files with 9 additions and 0 deletions
|
|
@ -43,6 +43,9 @@ enum agx_push_type {
|
|||
/* Push the content of a UBO */
|
||||
AGX_PUSH_UBO_DATA = 7,
|
||||
|
||||
/* RGBA blend constant (FP32) */
|
||||
AGX_PUSH_BLEND_CONST = 8,
|
||||
|
||||
/* Keep last */
|
||||
AGX_PUSH_NUM_TYPES
|
||||
};
|
||||
|
|
|
|||
|
|
@ -84,6 +84,12 @@ agx_push_location_direct(struct agx_context *ctx, struct agx_push push,
|
|||
return ptr.gpu;
|
||||
}
|
||||
|
||||
case AGX_PUSH_BLEND_CONST:
|
||||
{
|
||||
return agx_pool_upload_aligned(&batch->pool, &ctx->blend_color,
|
||||
sizeof(ctx->blend_color), 8);
|
||||
}
|
||||
|
||||
default:
|
||||
unreachable("todo: push more");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue