summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_context.c
diff options
context:
space:
mode:
authornobled <nobled@dreamwidth.org>2010-08-15 03:53:18 +0000
committerMarek Olšák <maraeo@gmail.com>2010-08-16 05:00:09 +0200
commite897bf524beae417252a1bf1b6bbd354902a57d7 (patch)
tree31d4e15e6e7ce08081f20e0dbad9250710c650ef /src/gallium/drivers/r300/r300_context.c
parent1e2cd02eae9d27e48273f4a548dc51f4f838eb96 (diff)
r300g: Let hyperz init fail
Signed-off-by: Marek Olšák <maraeo@gmail.com>
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.c')
-rw-r--r--src/gallium/drivers/r300/r300_context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c
index 25b39c566c..d783f21f5f 100644
--- a/src/gallium/drivers/r300/r300_context.c
+++ b/src/gallium/drivers/r300/r300_context.c
@@ -457,7 +457,8 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen,
/* setup hyper-z mm */
if (r300->rws->get_value(r300->rws, R300_CAN_HYPERZ))
- r300_hyperz_init_mm(r300);
+ if (!r300_hyperz_init_mm(r300))
+ goto fail;
r300->upload_ib = u_upload_create(&r300->context,
32 * 1024, 16,