summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_format.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-04-24 18:53:55 +1000
committerDave Airlie <airlied@redhat.com>2010-06-08 19:08:36 +1000
commita2817f6ae566b672f195cff22e14e2058d3617ea (patch)
treed6c8e1d354389727c9e0c490476ed007a340e32d /src/mesa/state_tracker/st_format.h
parent3a876e847388ad89ea52486040e2b4682a3524c1 (diff)
st/mesa: attempt to fix TFP by using sampler views (v1)
Okay I think this is good enough for now, I can't see any other reason for mesa to want to use a sampler view so lets just leave it at all the A->X conversions for now. I've been running gnome-shell under r300g with this for day or so and it seems fine. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/mesa/state_tracker/st_format.h')
-rw-r--r--src/mesa/state_tracker/st_format.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_format.h b/src/mesa/state_tracker/st_format.h
index 3288225d5d..29768f296d 100644
--- a/src/mesa/state_tracker/st_format.h
+++ b/src/mesa/state_tracker/st_format.h
@@ -62,5 +62,9 @@ st_ChooseTextureFormat(GLcontext * ctx, GLint internalFormat,
extern GLboolean
st_equal_formats(enum pipe_format pFormat, GLenum format, GLenum type);
+/* can we use a sampler view to translate these formats
+ only used to make TFP so far */
+extern GLboolean
+st_sampler_compat_formats(enum pipe_format format1, enum pipe_format format2);
#endif /* ST_FORMAT_H */