diff options
author | Marek Olšák <[email protected]> | 2010-09-04 19:04:51 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-09-04 19:06:47 +0200 |
commit | cbf7e827869baeddab19c249bcea7afe49bc0f74 (patch) | |
tree | 9db67cfdbf561924e81732930f2c44922b03611d /src/gallium | |
parent | 6e6409619002120f5a1584eaf3bc37853f734f2f (diff) |
Revert "r300g: refuse to create a texture with size 0"
This reverts commit 5cdedaaf295acae13ac10feeb3143d83bc53d314.
https://bugs.freedesktop.org/show_bug.cgi?id=30002
Conflicts:
src/gallium/drivers/r300/r300_texture.c
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/r300/r300_texture.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c index 66f6d80bd0c..dae5f2aedf9 100644 --- a/src/gallium/drivers/r300/r300_texture.c +++ b/src/gallium/drivers/r300/r300_texture.c @@ -758,18 +758,6 @@ struct pipe_resource *r300_texture_create(struct pipe_screen *screen, struct r300_screen *rscreen = r300_screen(screen); enum r300_buffer_tiling microtile, macrotile; - /* Refuse to create a texture with size 0. */ - if (!base->width0 || - (!base->height0 && (base->target == PIPE_TEXTURE_2D || - base->target == PIPE_TEXTURE_CUBE || - base->target == PIPE_TEXTURE_RECT)) || - (!base->depth0 && base->target == PIPE_TEXTURE_3D)) { - fprintf(stderr, "r300: texture_create: " - "Got invalid texture dimensions: %ix%ix%i\n", - base->width0, base->height0, base->depth0); - return NULL; - } - if ((base->flags & R300_RESOURCE_FLAG_TRANSFER) || (base->bind & PIPE_BIND_SCANOUT)) { microtile = R300_BUFFER_LINEAR; |