diff options
author | Matt Turner <[email protected]> | 2017-07-06 21:20:15 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2017-08-21 14:45:44 -0700 |
commit | 76f36607b06cec7e18df361a3e644687d3eb80ac (patch) | |
tree | bfe0199882f78fe90991f3ad94116b031f4025b8 /src | |
parent | ee2f7aa03b650c95eda8957abd750e53ede34c33 (diff) |
anv: Move clamp_int64() inside the IVB check
It's only used in the gen7_cmd_buffer_emit_scissor() function.
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/vulkan/gen7_cmd_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/gen7_cmd_buffer.c b/src/intel/vulkan/gen7_cmd_buffer.c index b1721c78ba0..5f7b5a07e4c 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) { |