search for: nouveau_texture_usage_linear

Displaying 4 results from an estimated 4 matches for "nouveau_texture_usage_linear".

2009 Dec 31
1
[PATCH] Print NOUVEAU_NO_SWIZZLE and NOUVEAU_NO_TRANSFER messages only once
.../* Direct access to texture */ - if ((pt->tex_usage & PIPE_TEXTURE_USAGE_DYNAMIC || - debug_get_bool_option("NOUVEAU_NO_TRANSFER", TRUE/*XXX:FALSE*/)) && + if ((pt->tex_usage & PIPE_TEXTURE_USAGE_DYNAMIC || no_transfer) && pt->tex_usage & NOUVEAU_TEXTURE_USAGE_LINEAR) { tx->direct = true; diff --git a/src/gallium/drivers/nv10/nv10_transfer.c b/src/gallium/drivers/nv10/nv10_transfer.c index eb04af9..d834638 100644 --- a/src/gallium/drivers/nv10/nv10_transfer.c +++ b/src/gallium/drivers/nv10/nv10_transfer.c @@ -41,6 +41,9 @@ nv10_transfer_new(struct pipe_...
2010 Jan 18
0
[PATCH] nv04-nv40: Rewrite and unify miptree and transfer code
.../ disable swizzled textures on NV04-NV20 as our current drivers don't fully support that + // TODO: hardware should support them, fix the drivers and reenable + || nouveau_screen(pt->screen)->device->chipset < 0x30 + || no_swizzle + ) + mt->base.tex_usage |= NOUVEAU_TEXTURE_USAGE_LINEAR; + + /* non compressed formats with uniform pitch must be linear, and vice versa */ + if(!util_format_is_compressed(pt->format) + && (uniform_pitch || mt->base.tex_usage & NOUVEAU_TEXTURE_USAGE_LINEAR)) + { + mt->base.tex_usage |= NOUVEAU_TEXTURE_USAGE_LINEAR; + uniform_pitc...
2010 Jan 18
0
[PATCH] nv04-nv40: Rewrite and unify miptree and transfer code (v2)
...rent 2D code can't handle anything + // else correctly, and even that is semi-broken + || pt->target != PIPE_TEXTURE_2D + || (pt->format != PIPE_FORMAT_A8R8G8B8_UNORM && pt->format != PIPE_FORMAT_X8R8G8B8_UNORM) + ) + mt->base.tex_usage |= NOUVEAU_TEXTURE_USAGE_LINEAR; + + /* non compressed formats with uniform pitch must be linear, and vice versa */ + if(!util_format_is_compressed(pt->format) + && (uniform_pitch || mt->base.tex_usage & NOUVEAU_TEXTURE_USAGE_LINEAR)) + { + mt->base.tex_usage |= NOUVEAU_TEXTURE_USAGE_LINEAR; + uniform_pitc...
2009 Dec 26
2
[MESA PATCH] Fix nv40_miptree_layout pitch
...iptree.c index b974e68..9f54187 100644 --- a/src/gallium/drivers/nv40/nv40_miptree.c +++ b/src/gallium/drivers/nv40/nv40_miptree.c @@ -31,8 +31,8 @@ nv40_miptree_layout(struct nv40_miptree *mt) } for (l = 0; l <= pt->last_level; l++) { - if (wide_pitch && (pt->tex_usage & NOUVEAU_TEXTURE_USAGE_LINEAR)) - mt->level[l].pitch = align(util_format_get_stride(pt->format, pt->width0), 64); + if (wide_pitch) + mt->level[l].pitch = align(util_format_get_stride(pt->format, width), 64); else mt->level[l].pitch = util_format_get_stride(pt->format, width);