i965: Fix encode_slm_size() to take a generation, not a device info.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 13 Jun 2016 19:18:23 +0000 (12:18 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 13 Jun 2016 19:23:11 +0000 (12:23 -0700)
commit5a0d294d38505ae61293ae1a9184e1b3228ef2af
treea3d660f3742b77f20d2403e6021dbe4ac2f2ede8
parent667e5cec760d1908af73a40de28c53848b5b70a0
i965: Fix encode_slm_size() to take a generation, not a device info.

In the Vulkan driver, we have the generation number (a compile time
constant) but not necessarily the brw_device_info struct.  I meant
to rework the function to take a generation number instead of a
brw_device_info pointer to accomodate this.  But I forgot, and left
it taking a brw_device_info pointer, while making Vulkan pass the
generation number (8, 9, ...) directly.  This led to crashes.

Brown paper bag fix for commit 87d062a94080373995170f51063a9649.

Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96504
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_compiler.h
src/mesa/drivers/dri/i965/gen7_cs_state.c