r300g: cleanup texture creation code
authorMarek Olšák <maraeo@gmail.com>
Sat, 24 Jul 2010 19:32:53 +0000 (21:32 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 25 Jul 2010 08:25:21 +0000 (10:25 +0200)
commitd779a5d16ae6a17b3fc0c097f4eb477a80e54566
tree82db8b25e46359d4f11cfa7d7a5eec318429e58f
parent065e3f7ff2a9b6170e51b0104036088e8d163ea0
r300g: cleanup texture creation code

This decouples initializing a texture layout/miptree description
from an actual texture creation, it also partially unifies texture_create
and texture_from_handle.

r300_texture inherits r300_texture_desc, which inherits u_resource.

The CBZB clear criteria are moved to r300_texture_desc::cbzb_allowed[level].

And other minor cleanups.
13 files changed:
src/gallium/drivers/r300/Makefile
src/gallium/drivers/r300/SConscript
src/gallium/drivers/r300/r300_blit.c
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_defines.h
src/gallium/drivers/r300/r300_fs.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_state_derived.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/r300/r300_texture.h
src/gallium/drivers/r300/r300_texture_desc.c [new file with mode: 0644]
src/gallium/drivers/r300/r300_texture_desc.h [new file with mode: 0644]
src/gallium/drivers/r300/r300_transfer.c