i965: silence unused function warning
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 15 Mar 2018 16:15:06 +0000 (16:15 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 15 Mar 2018 18:56:23 +0000 (18:56 +0000)
[123/227] Compiling C object 'src/mesa/drivers/dri/i965/libi965_gen110@sta/genX_blorp_exec.c.o'.
../src/mesa/drivers/dri/i965/genX_blorp_exec.c:99:1: warning: ‘blorp_get_surface_base_address’ defined but not used [-Wunused-function]
 blorp_get_surface_base_address(struct blorp_batch *batch)
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/mesa/drivers/dri/i965/genX_blorp_exec.c

index 53069e6fe23d4aaa9dcebd228c81cd0a2f98859c..3406a6fdec609484e8cb2d293a40e2549c3d22a0 100644 (file)
@@ -94,7 +94,7 @@ blorp_surface_reloc(struct blorp_batch *batch, uint32_t ss_offset,
 #endif
 }
 
-#if GEN_GEN >= 7
+#if GEN_GEN >= 7 && GEN_GEN <= 10
 static struct blorp_address
 blorp_get_surface_base_address(struct blorp_batch *batch)
 {