i915g: Fix offset for level != 0
authorStéphane Marchesin <marcheu@chromium.org>
Sat, 22 Nov 2014 08:08:56 +0000 (00:08 -0800)
committerStéphane Marchesin <marcheu@chromium.org>
Sat, 22 Nov 2014 08:13:39 +0000 (00:13 -0800)
commit0220a428d7e8df487e3cbd8c6cdd8ca2f39117ad
tree082e0fa80a6729b1ddb8485798ee063bd7fd5074
parenta9b07870764db617f199745573bfccddf9b378f9
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 <marcheu@chromium.org>
src/gallium/drivers/i915/i915_context.h
src/gallium/drivers/i915/i915_resource.h
src/gallium/drivers/i915/i915_resource_texture.c
src/gallium/drivers/i915/i915_state_emit.c
src/gallium/drivers/i915/i915_state_sampler.c