aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_context.h
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-07-11 22:45:11 +1000
committerBen Skeggs <[email protected]>2008-07-11 22:46:07 +1000
commit9b0add0be4a3ba7fc72779daf8361d8cd98d9f64 (patch)
treede5ce8244c8ead44b6f1ef3c5a8eaf8643ba0f6c /src/gallium/drivers/nv50/nv50_context.h
parent5180a668a7da627a40e024a2ed765458d5bac43e (diff)
nv50: quick hack to get textures untiled on map, and tiled on unmap
progs/fp/tri-tex is all good now rather than all scrambled :)
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_context.h')
-rw-r--r--src/gallium/drivers/nv50/nv50_context.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_context.h b/src/gallium/drivers/nv50/nv50_context.h
index cb51fb02ebd..1c069f1625f 100644
--- a/src/gallium/drivers/nv50/nv50_context.h
+++ b/src/gallium/drivers/nv50/nv50_context.h
@@ -74,6 +74,17 @@ nv50_miptree(struct pipe_texture *pt)
return (struct nv50_miptree *)pt;
}
+struct nv50_surface {
+ struct pipe_surface base;
+ struct pipe_buffer *untiled;
+};
+
+static INLINE struct nv50_surface *
+nv50_surface(struct pipe_surface *pt)
+{
+ return (struct nv50_surface *)pt;
+}
+
struct nv50_state {
unsigned dirty;