diff options
author | Luca Barbieri <[email protected]> | 2010-03-11 18:06:28 +0100 |
---|---|---|
committer | Luca Barbieri <[email protected]> | 2010-08-21 20:42:14 +0200 |
commit | ff74143fcc80b0157875bb0ce4b34a80f92e09c2 (patch) | |
tree | c843dae731b7b2d07a80ac66f31e0bec85fa7c99 /src/gallium/drivers/nvfx/nvfx_miptree.c | |
parent | 4793f48a19465ad27c3a33d9453a0def78775736 (diff) |
nv30: new 2D: support ARB_texture_rectangle
This uses nv30's _RECT formats.
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_miptree.c')
-rw-r--r-- | src/gallium/drivers/nvfx/nvfx_miptree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_miptree.c b/src/gallium/drivers/nvfx/nvfx_miptree.c index ffacf8a8e52..7deb9d7b9a3 100644 --- a/src/gallium/drivers/nvfx/nvfx_miptree.c +++ b/src/gallium/drivers/nvfx/nvfx_miptree.c @@ -23,7 +23,8 @@ nvfx_miptree_choose_format(struct nvfx_miptree *mt) if (!util_is_pot(pt->width0) || !util_is_pot(pt->height0) || - !util_is_pot(pt->depth0) + !util_is_pot(pt->depth0) || + (!nvfx_screen(pt->screen)->is_nv4x && pt->target == PIPE_TEXTURE_RECT) ) uniform_pitch = 1; |