Skip to content
Snippets Groups Projects
Commit 6d28c6e5 authored by Kenneth Graunke's avatar Kenneth Graunke
Browse files

i965: Select ranges of UBO data to be uploaded as push constants.


This adds a NIR pass that decides which portions of UBOS we should
upload as push constants, rather than pull constants.

v2: Switch to uint16_t for the UBO block number, because we may
    have a lot of them in Vulkan (suggested by Jason).  Add more
    comments about bitfield trickery (requested by Matt).

v3: Skip vec4 stages for now...I haven't finished wiring up support
    in the vec4 backend, and so pushing the data but not using it
    will just be wasteful.

Reviewed-by: default avatarMatt Turner <mattst88@gmail.com>
parent 2a5e4f15
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment