i965: Always look up from the object's mt when setting up texturing state.
authorEric Anholt <eric@anholt.net>
Tue, 17 Sep 2013 23:16:20 +0000 (16:16 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 30 Sep 2013 21:35:42 +0000 (14:35 -0700)
commit9c116d5eacf286cd8548d64ba8ce6528edb889c9
tree047128f9e0cc97ab2b1330bb8303d594c6bfe0b3
parent114ae4747549b5677cca0dbd2b8c8531d8789c49
i965: Always look up from the object's mt when setting up texturing state.

We know that the object's mt is equal to the firstimage's mt because it's
gone through intel_finalize_mipmap_tree().  Saves a lookup of firstimage
on pre-gen7.

v2: Merge in the warning fix that appeared later in the series (noted by
    Chad)

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c