diff options
author | Marek Olšák <maraeo@gmail.com> | 2011-10-20 23:14:36 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2011-10-20 23:37:22 +0200 |
commit | a04f8c361211dda6a27c5577070492e17a2f4743 (patch) | |
tree | 7564052c0268b05aeef490b418022bf3442cd3f1 /src/gallium/drivers/r300/r300_texture_desc.h | |
parent | c60eb632b7884fb00ba4d3ec460f070e0214d1b8 (diff) | |
download | external_mesa3d-a04f8c361211dda6a27c5577070492e17a2f4743.zip external_mesa3d-a04f8c361211dda6a27c5577070492e17a2f4743.tar.gz external_mesa3d-a04f8c361211dda6a27c5577070492e17a2f4743.tar.bz2 |
r300g: don't return NULL in resource_from_handle if the resource is too small
The DDX may allocate a buffer with a too small size.
Instead of failing, let's pretend everything's alright.
Such bugs should be fixed in the DDX, of course.
NOTE: This is a candidate for the stable branches.
Diffstat (limited to 'src/gallium/drivers/r300/r300_texture_desc.h')
-rw-r--r-- | src/gallium/drivers/r300/r300_texture_desc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_texture_desc.h b/src/gallium/drivers/r300/r300_texture_desc.h index a84d6fa..591592d 100644 --- a/src/gallium/drivers/r300/r300_texture_desc.h +++ b/src/gallium/drivers/r300/r300_texture_desc.h @@ -43,9 +43,9 @@ unsigned r300_get_pixel_alignment(enum pipe_format format, enum radeon_bo_layout macrotile, enum r300_dim dim, boolean is_rs690); -boolean r300_texture_desc_init(struct r300_screen *rscreen, - struct r300_resource *tex, - const struct pipe_resource *base); +void r300_texture_desc_init(struct r300_screen *rscreen, + struct r300_resource *tex, + const struct pipe_resource *base); unsigned r300_texture_get_offset(struct r300_resource *tex, unsigned level, unsigned layer); |