vk: Share upload logic and add size assert
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Tue, 11 Aug 2015 00:14:35 +0000 (17:14 -0700)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Tue, 11 Aug 2015 00:17:45 +0000 (17:17 -0700)
commit8605ee60e086ceb936000d3942a902239105637d
tree022c74eae7fa188002f2fa841ea03d033cb5fe80
parent6757e2f75c304afc958309d3084aa66ceb92bb10
vk: Share upload logic and add size assert

This lets us hit an assert if we exceed the block pool size instead of
GPU hanging.

Signed-off-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
src/vulkan/anv_compiler.cpp