i965/gen4-6: Handle gl_texture_object::BaseLevel and MinLayer correctly
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 22 Jun 2016 18:11:29 +0000 (11:11 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 22 Jun 2016 19:26:43 +0000 (12:26 -0700)
commit0f9cd74aab021da81a7e5a2f0fbf66213471628f
treec798b75bb773c85e5cb9084dbf59cb440afd9888
parentee39d3ba918de9d52d79bdee6db2c120bcf0f28e
i965/gen4-6: Handle gl_texture_object::BaseLevel and MinLayer correctly

This is basically a direct translation of what we do for gen7.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83036
Cc: "11.1 11.2 12.0" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c