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>
Showing
- src/gallium/drivers/i915/i915_context.h 1 addition, 1 deletionsrc/gallium/drivers/i915/i915_context.h
- src/gallium/drivers/i915/i915_resource.h 1 addition, 1 deletionsrc/gallium/drivers/i915/i915_resource.h
- src/gallium/drivers/i915/i915_resource_texture.c 1 addition, 1 deletionsrc/gallium/drivers/i915/i915_resource_texture.c
- src/gallium/drivers/i915/i915_state_emit.c 3 additions, 1 deletionsrc/gallium/drivers/i915/i915_state_emit.c
- src/gallium/drivers/i915/i915_state_sampler.c 21 additions, 4 deletionssrc/gallium/drivers/i915/i915_state_sampler.c
Loading
Please register or sign in to comment