st/nine: NineBaseTexture9: update sampler view creation
authorAxel Davy <axel.davy@ens.fr>
Tue, 2 Dec 2014 22:33:37 +0000 (23:33 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 22 Jan 2015 22:16:18 +0000 (22:16 +0000)
commit47280d777d33c8a78fb7286892071ef31c12f604
tree39b5c71647350e1672b925b6371c5b32cb602b61
parent0abfb80dacf80c1f2d0a6a4142b9ab84695aa9e7
st/nine: NineBaseTexture9: update sampler view creation

While previous code was having the correct behaviour in general,
this new code is more readable (without checking all gallium formats
manually) and has a more defined behaviour for depth stencil resources.

Reviewed-by: Tiziano Bacocco <tizbac2@gmail.com>
Reviewed-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
Cc: "10.4" <mesa-stable@lists.freedesktop.org>
src/gallium/state_trackers/nine/basetexture9.c