st/mesa: overhaul vertex/fragment sampler and sampler views.
authorDave Airlie <airlied@redhat.com>
Sat, 14 May 2011 08:04:08 +0000 (18:04 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 15 May 2011 20:40:26 +0000 (06:40 +1000)
commitc9aa3bbda44470c0a92c675abf4bbab83aba3fb7
tree5145b1ff83e9e419300cbee3772a8e193760b766
parentbc16c73407d11bb6702cf7de9925bfaeb80a5272
st/mesa: overhaul vertex/fragment sampler and sampler views.

This fixes piglits fragment-and-vertex-texturing test on llvmpipe for me.

I've no idea if someone had another plan for this that is smarter than what
I've done here, but what I've basically done is

split fragment and vertex sampler and sampler_view setup function, factor
out the common chunks of both.

side-cleanups:
drop st->state.sampler_list - unused
don't update border color if we have no border color.

should fix https://bugs.freedesktop.org/show_bug.cgi?id=35849

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_atom_sampler.c
src/mesa/state_tracker/st_atom_texture.c
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_context.h