summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_texture.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-01-13 10:57:44 -0700
committerBrian Paul <brianp@vmware.com>2010-01-13 15:10:56 -0700
commit9be1feacf2dbd36fa9fb65b9932a74f04a7d9cca (patch)
tree6cb1139b250fc588e51d83e424464a06f98fd455 /src/gallium/drivers/llvmpipe/lp_texture.h
parentddb94661a43fe50a0a058a56b05c65ee0cc204d9 (diff)
llvmpipe: added llvmpipe_texture_const()
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_texture.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_texture.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.h b/src/gallium/drivers/llvmpipe/lp_texture.h
index 00a20763e4..e37ef6059a 100644
--- a/src/gallium/drivers/llvmpipe/lp_texture.h
+++ b/src/gallium/drivers/llvmpipe/lp_texture.h
@@ -73,6 +73,13 @@ llvmpipe_texture(struct pipe_texture *pt)
return (struct llvmpipe_texture *) pt;
}
+static INLINE const struct llvmpipe_texture *
+llvmpipe_texture_const(const struct pipe_texture *pt)
+{
+ return (const struct llvmpipe_texture *) pt;
+}
+
+
static INLINE struct llvmpipe_transfer *
llvmpipe_transfer(struct pipe_transfer *pt)
{