This also involves moving revision checking to screen creation time and passing that into brw_get_device_info so that we can get the right device_info for early versions of SKL. Since the only place we used revision was to check for SIMD16 3-src instruction support, it's safe to remove the revision field from brw_context.
38dc2dd i965/device_info: Add a supports_simd16_3src flag
src/mesa/drivers/dri/i965/brw_context.c | 24 --------------------
src/mesa/drivers/dri/i965/brw_context.h | 4 ----
src/mesa/drivers/dri/i965/brw_device_info.c | 29 +++++++++++++++++++-----
src/mesa/drivers/dri/i965/brw_device_info.h | 3 ++-
src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 25 +++++---------------
src/mesa/drivers/dri/i965/intel_screen.c | 26 ++++++++++++++++++++-
6 files changed, 56 insertions(+), 55 deletions(-)
Upstream: cgit.freedesktop.org