projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
freedreno: move a2xx disasm out of gallium
[mesa.git]
/
src
/
freedreno
/
decode
/
disasm-a2xx.c
diff --git
a/src/freedreno/decode/disasm-a2xx.c
b/src/freedreno/decode/disasm-a2xx.c
index 622d00479a8e1cc71e791431192464d8da841d83..e6d7ba30c888d554c9e5961f4b30d0b5ed5e0361 100644
(file)
--- a/
src/freedreno/decode/disasm-a2xx.c
+++ b/
src/freedreno/decode/disasm-a2xx.c
@@
-49,7
+49,7
@@
static const char *levels[] = {
"x",
};
"x",
};
-enum debug_t debug;
+
static
enum debug_t debug;
static struct rnn *rnn;
static struct rnn *rnn;
@@
-96,17
+96,17
@@
static void print_dstreg(uint32_t num, uint32_t mask, uint32_t dst_exp)
}
}
}
}
-static void print_export_comment(uint32_t num,
enum shader_t
type)
+static void print_export_comment(uint32_t num,
gl_shader_stage
type)
{
const char *name = NULL;
switch (type) {
{
const char *name = NULL;
switch (type) {
- case SHADER_VERTEX:
+ case
MESA_
SHADER_VERTEX:
switch (num) {
case 62: name = "gl_Position"; break;
case 63: name = "gl_PointSize"; break;
}
break;
switch (num) {
case 62: name = "gl_Position"; break;
case 63: name = "gl_PointSize"; break;
}
break;
- case SHADER_FRAGMENT:
+ case
MESA_
SHADER_FRAGMENT:
switch (num) {
case 0: name = "gl_FragColor"; break;
}
switch (num) {
case 0: name = "gl_FragColor"; break;
}
@@
-212,7
+212,7
@@
struct {
};
static int disasm_alu(uint32_t *dwords, uint32_t alu_off,
};
static int disasm_alu(uint32_t *dwords, uint32_t alu_off,
- int level, int sync,
enum shader_t
type)
+ int level, int sync,
gl_shader_stage
type)
{
instr_alu_t *alu = (instr_alu_t *)dwords;
{
instr_alu_t *alu = (instr_alu_t *)dwords;
@@
-577,7
+577,7
@@
static void print_cf(instr_cf_t *cf, int level)
* 2) ALU and FETCH instructions
*/
* 2) ALU and FETCH instructions
*/
-int disasm_a2xx(uint32_t *dwords, int sizedwords, int level,
enum shader_t
type)
+int disasm_a2xx(uint32_t *dwords, int sizedwords, int level,
gl_shader_stage
type)
{
instr_cf_t *cfs = (instr_cf_t *)dwords;
int idx, max_idx;
{
instr_cf_t *cfs = (instr_cf_t *)dwords;
int idx, max_idx;
@@
-618,7
+618,7
@@
int disasm_a2xx(uint32_t *dwords, int sizedwords, int level, enum shader_t type)
return 0;
}
return 0;
}
-void disasm_set_debug(enum debug_t d)
+void disasm_
a2xx_
set_debug(enum debug_t d)
{
debug = d;
}
{
debug = d;
}