i965: Don't use MAX_SURFACES in mark_surface_used
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 1 Mar 2017 01:15:04 +0000 (17:15 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 2 Mar 2017 00:14:01 +0000 (16:14 -0800)
commit035616cb8edef47d9d2aac78d47c99563fd5468f
treea062c0769b4e9bc7f5c060c60b5b9d29329a4469
parent0d2c9ce1ce93848ce4c13d3467d58fa2fc36d0ca
i965: Don't use MAX_SURFACES in mark_surface_used

Vulkan doesn't respect MAX_SURFACES so this assert isn't valid in that
case.  It should, however, assert that it isn't insanely large.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_shader.cpp