freedreno: import libdrm_freedreno + redesign submit
[mesa.git] / src / gallium / drivers / freedreno / a4xx / fd4_texture.h
index 31955770a85de3a5b56ff33fd3c62c1b946d6528..2e8861e4d78ef039b97b42a69cf4620efdc2f8e3 100644 (file)
@@ -1,5 +1,3 @@
-/* -*- mode: C; c-file-style: "k&r"; tab-width 4; indent-tabs-mode: t; -*- */
-
 /*
  * Copyright (C) 2014 Rob Clark <robclark@freedesktop.org>
  *
@@ -41,6 +39,7 @@ struct fd4_sampler_stateobj {
        struct pipe_sampler_state base;
        uint32_t texsamp0, texsamp1;
        bool saturate_s, saturate_t, saturate_r;
+       bool needs_border;
 };
 
 static inline struct fd4_sampler_stateobj *
@@ -51,7 +50,9 @@ fd4_sampler_stateobj(struct pipe_sampler_state *samp)
 
 struct fd4_pipe_sampler_view {
        struct pipe_sampler_view base;
-       uint32_t texconst0, texconst1, texconst2, texconst3, textconst4;
+       uint32_t texconst0, texconst1, texconst2, texconst3, texconst4;
+       uint32_t offset;
+       bool astc_srgb;
 };
 
 static inline struct fd4_pipe_sampler_view *