mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
nouveau/push: Add a P_INLINE_FLOAT helper
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
parent
5e3f6f326f
commit
dc1f87864d
1 changed files with 10 additions and 0 deletions
|
|
@ -165,6 +165,16 @@ P_INLINE_DATA(struct nouveau_ws_push *push, uint32_t value)
|
|||
}
|
||||
}
|
||||
|
||||
static inline void
|
||||
P_INLINE_FLOAT(struct nouveau_ws_push *push, float value)
|
||||
{
|
||||
if (nvk_push_update_count(push, 1)) {
|
||||
/* push new value */
|
||||
*(float *)push->map = value;
|
||||
push->map++;
|
||||
}
|
||||
}
|
||||
|
||||
static inline void
|
||||
P_INLINE_ARRAY(struct nouveau_ws_push *push, const uint32_t *data, int num_dw)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue