OSDN Git Service

gallivm,draw,llvmpipe: use base ptr + mip offsets instead of mip pointers
authorRoland Scheidegger <sroland@vmware.com>
Mon, 12 Nov 2012 19:35:04 +0000 (20:35 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 12 Nov 2012 20:02:59 +0000 (21:02 +0100)
commit26097c4855b97ee6e362c19df11d51fb7fd42192
treedbc5018aa4b3a2c2fb2e1e0464be4776610cc044
parent8257bb963f0b21c0c35da479707b5cacbc1c2824
gallivm,draw,llvmpipe: use base ptr + mip offsets instead of mip pointers

This might have a slight overhead but handling mip offsets more like
the width (and image) strides should make some things easier (mip level
being just part of the offset calculation) later.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
14 files changed:
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_context.h
src/gallium/auxiliary/draw/draw_llvm.c
src/gallium/auxiliary/draw/draw_llvm.h
src/gallium/auxiliary/draw/draw_llvm_sample.c
src/gallium/auxiliary/gallivm/lp_bld_sample.c
src/gallium/auxiliary/gallivm/lp_bld_sample.h
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
src/gallium/drivers/i915/i915_state.c
src/gallium/drivers/llvmpipe/lp_jit.c
src/gallium/drivers/llvmpipe/lp_jit.h
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/llvmpipe/lp_state_sampler.c
src/gallium/drivers/llvmpipe/lp_tex_sample.c