mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 20:50:09 +01:00
i965: Make opcode_descs and gen_from_devinfo() static.
The previous commit replaced direct uses of opcode_descs with calls to the wrapper function, which should be the only method of accessing opcode_descs's data. As a result gen_from_devinfo() can also be made static. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
0ff4912cf4
commit
b89b0a03f2
2 changed files with 2 additions and 6 deletions
|
|
@ -355,7 +355,7 @@ enum gen {
|
|||
#define GEN_GE(gen) (~((gen) - 1) | gen)
|
||||
#define GEN_LE(gen) (((gen) - 1) | gen)
|
||||
|
||||
const struct opcode_desc opcode_descs[128] = {
|
||||
static const struct opcode_desc opcode_descs[128] = {
|
||||
[BRW_OPCODE_ILLEGAL] = {
|
||||
.name = "illegal", .nsrc = 0, .ndst = 0, .gens = GEN_ALL,
|
||||
},
|
||||
|
|
@ -566,7 +566,7 @@ const struct opcode_desc opcode_descs[128] = {
|
|||
},
|
||||
};
|
||||
|
||||
int
|
||||
static enum gen
|
||||
gen_from_devinfo(const struct brw_device_info *devinfo)
|
||||
{
|
||||
switch (devinfo->gen) {
|
||||
|
|
|
|||
|
|
@ -552,10 +552,6 @@ struct opcode_desc {
|
|||
int gens;
|
||||
};
|
||||
|
||||
extern const struct opcode_desc opcode_descs[128];
|
||||
|
||||
int gen_from_devinfo(const struct brw_device_info *devinfo);
|
||||
|
||||
const struct opcode_desc *
|
||||
brw_opcode_desc(const struct brw_device_info *devinfo, enum opcode opcode);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue