projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee2f7aa
)
anv: Move clamp_int64() inside the IVB check
author
Matt Turner
<mattst88@gmail.com>
Fri, 7 Jul 2017 04:20:15 +0000
(21:20 -0700)
committer
Matt Turner
<mattst88@gmail.com>
Mon, 21 Aug 2017 21:45:44 +0000
(14:45 -0700)
It's only used in the gen7_cmd_buffer_emit_scissor() function.
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/intel/vulkan/gen7_cmd_buffer.c
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/gen7_cmd_buffer.c
b/src/intel/vulkan/gen7_cmd_buffer.c
index b1721c78ba0c732365856b02cb642e5fd15fbcca..5f7b5a07e4cac8a4a3d87d950c703cc20bd13dcc 100644
(file)
--- 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)
{