diff options
author | Marek Olšák <[email protected]> | 2010-07-24 21:32:53 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-07-25 10:25:21 +0200 |
commit | d779a5d16ae6a17b3fc0c097f4eb477a80e54566 (patch) | |
tree | 82db8b25e46359d4f11cfa7d7a5eec318429e58f /src/gallium/drivers/r300/r300_fs.c | |
parent | 065e3f7ff2a9b6170e51b0104036088e8d163ea0 (diff) |
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.
Diffstat (limited to 'src/gallium/drivers/r300/r300_fs.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_fs.c b/src/gallium/drivers/r300/r300_fs.c index b145ded6399..6eac12bfb9f 100644 --- a/src/gallium/drivers/r300/r300_fs.c +++ b/src/gallium/drivers/r300/r300_fs.c @@ -173,7 +173,7 @@ static void get_external_state( t = (struct r300_texture*)texstate->sampler_views[i]->base.texture; /* XXX this should probably take into account STR, not just S. */ - if (t->uses_pitch) { + if (t->desc.uses_stride_addressing) { switch (s->state.wrap_s) { case PIPE_TEX_WRAP_REPEAT: state->unit[i].wrap_mode = RC_WRAP_REPEAT; |