summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915/i915_resource.h
diff options
context:
space:
mode:
authorStéphane Marchesin <[email protected]>2011-06-24 16:18:58 -0700
committerStéphane Marchesin <[email protected]>2011-06-24 16:30:19 -0700
commit1a69b50b3b441ce8f7a00af3a7f02c37df50f6c3 (patch)
tree95c1b1291ab9f34ff58f4a37dc65774b2455b9dc /src/gallium/drivers/i915/i915_resource.h
parent6b28b44d458177209705637f759d03a27fa100f1 (diff)
i915g: Fix point sprites.
Diffstat (limited to 'src/gallium/drivers/i915/i915_resource.h')
-rw-r--r--src/gallium/drivers/i915/i915_resource.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_resource.h b/src/gallium/drivers/i915/i915_resource.h
index c15ecdfc22a..14eed2c4a79 100644
--- a/src/gallium/drivers/i915/i915_resource.h
+++ b/src/gallium/drivers/i915/i915_resource.h
@@ -45,6 +45,15 @@ struct i915_buffer {
boolean free_on_destroy;
};
+
+/* Texture transfer. */
+struct i915_transfer {
+ /* Base class. */
+ struct pipe_transfer b;
+ struct pipe_resource *staging_texture;
+};
+
+
#define I915_MAX_TEXTURE_2D_LEVELS 12 /* max 2048x2048 */
#define I915_MAX_TEXTURE_3D_LEVELS 9 /* max 256x256x256 */
@@ -101,7 +110,8 @@ static INLINE struct i915_buffer *i915_buffer(struct pipe_resource *resource)
struct pipe_resource *
i915_texture_create(struct pipe_screen *screen,
- const struct pipe_resource *template);
+ const struct pipe_resource *template,
+ boolean force_untiled);
struct pipe_resource *
i915_texture_from_handle(struct pipe_screen * screen,