freedreno/a4xx: use hardware RGTC texture samplers
[mesa.git] / src / gallium / drivers / freedreno / a4xx / fd4_texture.h
index 07eb961eb8fb67c38a65d7cd8349734b4b7fa0f4..31955770a85de3a5b56ff33fd3c62c1b946d6528 100644 (file)
 struct fd4_sampler_stateobj {
        struct pipe_sampler_state base;
        uint32_t texsamp0, texsamp1;
+       bool saturate_s, saturate_t, saturate_r;
 };
 
-static INLINE struct fd4_sampler_stateobj *
+static inline struct fd4_sampler_stateobj *
 fd4_sampler_stateobj(struct pipe_sampler_state *samp)
 {
        return (struct fd4_sampler_stateobj *)samp;
@@ -50,11 +51,10 @@ fd4_sampler_stateobj(struct pipe_sampler_state *samp)
 
 struct fd4_pipe_sampler_view {
        struct pipe_sampler_view base;
-       struct fd_resource *tex_resource;
-       uint32_t texconst0, texconst1, texconst2, texconst3;
+       uint32_t texconst0, texconst1, texconst2, texconst3, textconst4;
 };
 
-static INLINE struct fd4_pipe_sampler_view *
+static inline struct fd4_pipe_sampler_view *
 fd4_pipe_sampler_view(struct pipe_sampler_view *pview)
 {
        return (struct fd4_pipe_sampler_view *)pview;