From e2f707ce5b569e40c2a3821149f87659553467f9 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Tue, 14 Mar 2017 13:12:22 +0100 Subject: intel/blorp: make upload_shader() return a bool indicating success or failure For now we always return true, follow-up patches will handle fail scenarios. Reviewed-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_blorp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa') diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c index fdc9dd13cc1..b69cb4fc7b8 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp.c +++ b/src/mesa/drivers/dri/i965/brw_blorp.c @@ -48,7 +48,7 @@ brw_blorp_lookup_shader(struct blorp_context *blorp, key, key_size, kernel_out, prog_data_out); } -static void +static bool brw_blorp_upload_shader(struct blorp_context *blorp, const void *key, uint32_t key_size, const void *kernel, uint32_t kernel_size, @@ -60,6 +60,7 @@ brw_blorp_upload_shader(struct blorp_context *blorp, brw_upload_cache(&brw->cache, BRW_CACHE_BLORP_PROG, key, key_size, kernel, kernel_size, prog_data, prog_data_size, kernel_out, prog_data_out); + return true; } void -- cgit v1.2.3