Mesa (master): anv: Move clamp_int64() inside the IVB check
Matt Turner
mattst88 at kemper.freedesktop.org
Mon Aug 21 21:45:52 UTC 2017
Module: Mesa
Branch: master
Commit: 76f36607b06cec7e18df361a3e644687d3eb80ac
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=76f36607b06cec7e18df361a3e644687d3eb80ac
Author: Matt Turner <mattst88 at gmail.com>
Date: Thu Jul 6 21:20:15 2017 -0700
anv: Move clamp_int64() inside the IVB check
It's only used in the gen7_cmd_buffer_emit_scissor() function.
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
---
src/intel/vulkan/gen7_cmd_buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/vulkan/gen7_cmd_buffer.c b/src/intel/vulkan/gen7_cmd_buffer.c
index b1721c78ba..5f7b5a07e4 100644
--- a/src/intel/vulkan/gen7_cmd_buffer.c
+++ b/src/intel/vulkan/gen7_cmd_buffer.c
@@ -33,6 +33,7 @@
#include "genxml/gen_macros.h"
#include "genxml/genX_pack.h"
+#if GEN_GEN == 7 && !GEN_IS_HASWELL
static inline int64_t
clamp_int64(int64_t x, int64_t min, int64_t max)
{
@@ -44,7 +45,6 @@ clamp_int64(int64_t x, int64_t min, int64_t max)
return max;
}
-#if GEN_GEN == 7 && !GEN_IS_HASWELL
void
gen7_cmd_buffer_emit_scissor(struct anv_cmd_buffer *cmd_buffer)
{
More information about the mesa-commit
mailing list