summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/disasm.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2018-11-09 10:57:18 -0500
committerRob Clark <[email protected]>2018-11-27 15:44:02 -0500
commit424d75656ffc2a7d36b04d564cd77bb8f4114af1 (patch)
tree2f70b333782ec4616cb3ed9de25d2fcd7c01ee4b /src/gallium/drivers/freedreno/disasm.h
parent8a654f092eaa6a6435e26668ea7fb0bc2a5de99c (diff)
freedreno: FD_SHADER_DEBUG -> IR3_SHADER_DEBUG
Only used by ir3, so move it into ir3 to be more self contained. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/disasm.h')
-rw-r--r--src/gallium/drivers/freedreno/disasm.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/gallium/drivers/freedreno/disasm.h b/src/gallium/drivers/freedreno/disasm.h
index f20d2caed67..9de87d8de5f 100644
--- a/src/gallium/drivers/freedreno/disasm.h
+++ b/src/gallium/drivers/freedreno/disasm.h
@@ -30,27 +30,6 @@
#include "compiler/shader_enums.h"
#include "util/u_debug.h"
-enum fd_shader_debug {
- FD_DBG_SHADER_VS = 0x01,
- FD_DBG_SHADER_FS = 0x02,
- FD_DBG_SHADER_CS = 0x04,
-};
-
-extern enum fd_shader_debug fd_shader_debug;
-
-static inline bool
-shader_debug_enabled(gl_shader_stage type)
-{
- switch (type) {
- case MESA_SHADER_VERTEX: return !!(fd_shader_debug & FD_DBG_SHADER_VS);
- case MESA_SHADER_FRAGMENT: return !!(fd_shader_debug & FD_DBG_SHADER_FS);
- case MESA_SHADER_COMPUTE: return !!(fd_shader_debug & FD_DBG_SHADER_CS);
- default:
- debug_assert(0);
- return false;
- }
-}
-
/* bitmask of debug flags */
enum debug_t {
PRINT_RAW = 0x1, /* dump raw hexdump */