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_context.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_context.h')
-rw-r--r-- | src/gallium/drivers/i915/i915_context.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_context.h b/src/gallium/drivers/i915/i915_context.h index ec8cbbf1f52..40abf3c577f 100644 --- a/src/gallium/drivers/i915/i915_context.h +++ b/src/gallium/drivers/i915/i915_context.h @@ -157,7 +157,7 @@ struct i915_state unsigned sampler_enable_nr; /* texture image buffers */ - unsigned texbuffer[I915_TEX_UNITS][2]; + unsigned texbuffer[I915_TEX_UNITS][3]; /** Describes the current hardware vertex layout */ struct vertex_info vertex_info; |