aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_texture.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-10-20 23:14:36 +0200
committerMarek Olšák <[email protected]>2011-10-20 23:37:22 +0200
commita04f8c361211dda6a27c5577070492e17a2f4743 (patch)
tree7564052c0268b05aeef490b418022bf3442cd3f1 /src/gallium/drivers/r300/r300_texture.h
parentc60eb632b7884fb00ba4d3ec460f070e0214d1b8 (diff)
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.h')
-rw-r--r--src/gallium/drivers/r300/r300_texture.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.h b/src/gallium/drivers/r300/r300_texture.h
index 0da07235a69..f87d2842a8b 100644
--- a/src/gallium/drivers/r300/r300_texture.h
+++ b/src/gallium/drivers/r300/r300_texture.h
@@ -46,9 +46,9 @@ uint32_t r300_translate_texformat(enum pipe_format format,
uint32_t r500_tx_format_msb_bit(enum pipe_format format);
-boolean r300_resource_set_properties(struct pipe_screen *screen,
- struct pipe_resource *tex,
- const struct pipe_resource *new_properties);
+void r300_resource_set_properties(struct pipe_screen *screen,
+ struct pipe_resource *tex,
+ const struct pipe_resource *new_properties);
boolean r300_is_colorbuffer_format_supported(enum pipe_format format);