summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_draw.c
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2014-11-11 14:10:06 +0000
committerIan Romanick <[email protected]>2014-12-02 12:16:28 -0800
commit0391d1bbeacbe3605beaec10711d936348c9bcab (patch)
tree864ca51f3c2f92b8b91ffae16c580a93fca09f13 /src/mesa/drivers/dri/i965/brw_draw.c
parent9fd398215d4baf70a316d8f7a938a99ed48668c9 (diff)
i965: Just return void from brw_try_draw_prims
Note from Ken: "We used to use the return value to indicate whether software fallbacks were necessary, but we haven't in years." Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_draw.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_draw.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c
index b28eaf24918..4c2802ac66f 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.c
+++ b/src/mesa/drivers/dri/i965/brw_draw.c
@@ -347,7 +347,7 @@ static void brw_postdraw_set_buffers_need_resolve(struct brw_context *brw)
/* May fail if out of video memory for texture or vbo upload, or on
* fallback conditions.
*/
-static bool brw_try_draw_prims( struct gl_context *ctx,
+static void brw_try_draw_prims( struct gl_context *ctx,
const struct gl_client_array *arrays[],
const struct _mesa_prim *prims,
GLuint nr_prims,
@@ -357,7 +357,6 @@ static bool brw_try_draw_prims( struct gl_context *ctx,
struct gl_buffer_object *indirect)
{
struct brw_context *brw = brw_context(ctx);
- bool retval = true;
GLuint i;
bool fail_next = false;
@@ -487,8 +486,6 @@ retry:
"available aperture space\n");
warned = true;
}
-
- retval = false;
}
}
}
@@ -506,7 +503,7 @@ retry:
brw_state_cache_check_size(brw);
brw_postdraw_set_buffers_need_resolve(brw);
- return retval;
+ return;
}
void brw_draw_prims( struct gl_context *ctx,