summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_extensions.py
diff options
context:
space:
mode:
authorDanylo Piliaiev <[email protected]>2019-03-18 12:53:30 +0200
committerLionel Landwerlin <[email protected]>2019-03-18 16:09:42 +0000
commitecb98c68988570806c239c7cc705c69a98aafc23 (patch)
tree827e492214b288b95056dd635327df49087e6169 /src/intel/vulkan/anv_extensions.py
parentf5b71b18ef600caa608f3885721603712d1a6d38 (diff)
anv: Treat zero size XFB buffer as disabled
Vulkan spec doesn't explicitly forbid zero size transform feedback buffers. Having zero size xfb caused SurfaceSize overflow and triggered assert in debug build. The only way to have zero size SO_BUFFER is to disable SO_BUFFER as stated in hardware spec. From SKL PRM, Vol 2a, "3DSTATE_SO_BUFFER": "If set, stream output to SO Buffer is enabled, if 3DSTATE_STREAMOUT::SO Function ENABLE is also enabled. If clear, the SO Buffer is considered "not bound" and effectively treated as a zero- length buffer for the purposes of SO output and overflow detection. If an enabled stream's Stream to Buffer Selects includes this buffer it is by definition an overflow condition. That stream will cause no writes to occur, and only SO_PRIM_STORAGE_NEEDED[<stream>] will increment." Fixes: 36ee2fd61c8 "anv: Implement the basic form of VK_EXT_transform_feedback" Signed-off-by: Danylo Piliaiev <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_extensions.py')
0 files changed, 0 insertions, 0 deletions