diff options
author | Stéphane Marchesin <[email protected]> | 2014-11-22 00:08:56 -0800 |
---|---|---|
committer | Stéphane Marchesin <[email protected]> | 2014-11-22 00:13:39 -0800 |
commit | 0220a428d7e8df487e3cbd8c6cdd8ca2f39117ad (patch) | |
tree | 082e0fa80a6729b1ddb8485798ee063bd7fd5074 /src/gallium/drivers/i915/i915_resource.h | |
parent | a9b07870764db617f199745573bfccddf9b378f9 (diff) |
i915g: Fix offset for level != 0
For NPOT texture layouts, we want to be able to access texture levels
other than 0 directly. Since the hw doesn't support that, We do it by
adding the offset directly.
Signed-off-by: Stéphane Marchesin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/i915/i915_resource.h')
-rw-r--r-- | src/gallium/drivers/i915/i915_resource.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_resource.h b/src/gallium/drivers/i915/i915_resource.h index 46241c9a8e9..ef99cfb5d3c 100644 --- a/src/gallium/drivers/i915/i915_resource.h +++ b/src/gallium/drivers/i915/i915_resource.h @@ -86,7 +86,7 @@ struct i915_texture { struct i915_winsys_buffer *buffer; }; -unsigned i915_texture_offset(struct i915_texture *tex, +unsigned i915_texture_offset(const struct i915_texture *tex, unsigned level, unsigned layer); void i915_init_screen_resource_functions(struct i915_screen *is); void i915_init_resource_functions(struct i915_context *i915); |