r300g: Add VBO dumper for SW TCL.
[mesa.git] / src / gallium / drivers / nvfx / nv04_surface_2d.h
index ce696a11a39e44a9fda8425a082f2a0ecdab559d..2123c3ed08b49afb3a7c4ad7457a1d4870d98368 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef __NV04_SURFACE_2D_H__
 #define __NV04_SURFACE_2D_H__
 
+#include "pipe/p_state.h"
+
+struct nouveau_screen;
+
 struct nv04_surface {
        struct pipe_surface base;
        unsigned pitch;
@@ -16,7 +20,7 @@ struct nv04_surface_2d {
        struct nouveau_grobj *blit;
        struct nouveau_grobj *sifm;
 
-       struct pipe_buffer *(*buf)(struct pipe_surface *);
+       struct nouveau_bo *(*buf)(struct pipe_surface *);
 
        void (*copy)(struct nv04_surface_2d *, struct pipe_surface *dst,
                     int dx, int dy, struct pipe_surface *src, int sx, int sy,
@@ -34,4 +38,6 @@ nv04_surface_2d_takedown(struct nv04_surface_2d **);
 struct nv04_surface*
 nv04_surface_wrap_for_render(struct pipe_screen *pscreen, struct nv04_surface_2d* eng2d, struct nv04_surface* ns);
 
+#define NVFX_RESOURCE_FLAG_LINEAR (PIPE_RESOURCE_FLAG_DRV_PRIV << 0)
+
 #endif