summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_format.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/svga/svga_format.h')
-rw-r--r--src/gallium/drivers/svga/svga_format.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_format.h b/src/gallium/drivers/svga/svga_format.h
index a32b0669c0d..64d3cc06bed 100644
--- a/src/gallium/drivers/svga/svga_format.h
+++ b/src/gallium/drivers/svga/svga_format.h
@@ -56,12 +56,21 @@ struct svga_screen;
* Texture format flags.
*/
#define TF_GEN_MIPS (1 << 8) /* supports hw generate mipmap */
+#define TF_000X (1 << 9) /* swizzle <0, 0, 0, X> */
+#define TF_XXXX (1 << 10) /* swizzle <X, X, X, X> */
+#define TF_XXX1 (1 << 11) /* swizzle <X, X, X, 1> */
+#define TF_XXXY (1 << 12) /* swizzle <X, X, X, Y> */
void
svga_translate_vertex_format_vgpu10(enum pipe_format format,
SVGA3dSurfaceFormat *svga_format,
unsigned *vf_flags);
+void
+svga_translate_texture_buffer_view_format(enum pipe_format format,
+ SVGA3dSurfaceFormat *svga_format,
+ unsigned *tf_flags);
+
enum SVGA3dSurfaceFormat
svga_translate_format(const struct svga_screen *ss,
enum pipe_format format,