Skip to content
  • Timur Kristóf's avatar
    iris: move sysvals to their own constant buffer · 3b6d787e
    Timur Kristóf authored
    
    
    This commit moves the sysvals to a separate, new constant buffer
    at the end (before the shader constants). It also allows us to
    remove the special handling we had for cbuf0, and enables all
    constant buffers to support user-specified resources and user
    buffers.
    
    v2: (by Kenneth Graunke)
    - Rebase on the previous patch to fix system value uploading.
    - Fix disk cache num_cbufs calculation
    - Fix passthrough TCS to report num_cbufs = 1 so upload actually occurs
    - Change upload_sysvals to assert that num_cbufs > 0 when
      num_system_values > 0.
    
    Signed-off-by: default avatarTimur Kristóf <timur.kristof@gmail.com>
    Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
    3b6d787e