vc4: Add support for rebasing texture levels so firstlevel == 0.
authorEric Anholt <eric@anholt.net>
Fri, 3 Oct 2014 05:14:03 +0000 (22:14 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 19 Oct 2014 07:42:33 +0000 (08:42 +0100)
commit572fba95e4cd85aebdde9bd757c17f719af2af04
tree9a8e72c55c67b4a9190e9812ab3e38fc98d5a462
parent15eb4c59f6504473989e6a064fda11d6c009ed8f
vc4: Add support for rebasing texture levels so firstlevel == 0.

GLES2 doesn't have GL_TEXTURE_BASE_LEVEL, so the hardware doesn't.  Fixes
piglit levelclamp, tex-miplevel-selection, and texture-storage/2D mipmap
rendering.
src/gallium/drivers/vc4/vc4_context.c
src/gallium/drivers/vc4/vc4_program.c
src/gallium/drivers/vc4/vc4_resource.c
src/gallium/drivers/vc4/vc4_resource.h
src/gallium/drivers/vc4/vc4_state.c