Skip to content

svga: use srv rawbuffer for constant buffer and readonly shader buffer access

Charmaine Lee requested to merge charmainel/mesa:svga-use-srv-rawbuf into main

What does this MR do and why?

  • fix persistent mapped surface update to constant buffer
  • use srv raw buffer for accessing readonly shader buffer

When a buffer is simultanously bound to uniform buffer and shader storage buffer, having both srv and uav on the same resource is costly. To provide better performance on readonly shader buffer, instead of creating uav for accessing a readonly shader buffer, srv raw buffer is used instead.

Tested with yuzu tracefile included in VMware bug 3029385.

Merge request reports

Loading