summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915/i915_state.h
diff options
context:
space:
mode:
authorStéphane Marchesin <[email protected]>2014-05-26 06:48:11 -0700
committerStéphane Marchesin <[email protected]>2014-05-26 23:08:49 -0700
commitb419ca937a666b0e5a6aca4cf179d8d43e0a3996 (patch)
tree42b78d1fd6c0be448a3f887426cd52556bfa78a5 /src/gallium/drivers/i915/i915_state.h
parenta26e2bc2e3578b50bd581c8f8d8e3c428c85158f (diff)
i915g: handle more formats in copy
We can handle depth, luminance,... copies by simply replacing the format with a known format of the same bpp.
Diffstat (limited to 'src/gallium/drivers/i915/i915_state.h')
-rw-r--r--src/gallium/drivers/i915/i915_state.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915/i915_state.h b/src/gallium/drivers/i915/i915_state.h
index f529329d8c2..56ebb2ddb86 100644
--- a/src/gallium/drivers/i915/i915_state.h
+++ b/src/gallium/drivers/i915/i915_state.h
@@ -53,5 +53,11 @@ extern struct i915_tracked_state i915_hw_constants;
void i915_update_derived(struct i915_context *i915);
void i915_emit_hardware_state(struct i915_context *i915);
+struct pipe_sampler_view *
+i915_create_sampler_view_custom(struct pipe_context *pipe,
+ struct pipe_resource *texture,
+ const struct pipe_sampler_view *templ,
+ unsigned width0,
+ unsigned height0);
#endif