summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-05-20 11:24:21 -0700
committerKenneth Graunke <[email protected]>2019-05-21 15:05:38 -0700
commit419d9b21e14d67776ec3a47df110dcbb6566dc03 (patch)
tree7574a498b1eb850cc934d5e2c6d1d30ab2d6b532 /src/mesa/drivers/dri
parentb589c2547d23c943a2550584aa2643ecbe587c42 (diff)
intel: Move brw_prog_key_set_id from i965 to the compiler.
I want to use it in iris. Reviewed-by: Dylan Baker <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/brw_program.c16
-rw-r--r--src/mesa/drivers/dri/i965/brw_program.h4
2 files changed, 0 insertions, 20 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c
index deb0f1cf225..9eac83b7254 100644
--- a/src/mesa/drivers/dri/i965/brw_program.c
+++ b/src/mesa/drivers/dri/i965/brw_program.c
@@ -869,22 +869,6 @@ brw_assign_common_binding_table_offsets(const struct gen_device_info *devinfo,
}
void
-brw_prog_key_set_id(union brw_any_prog_key *key, gl_shader_stage stage,
- unsigned id)
-{
- static const unsigned stage_offsets[] = {
- offsetof(struct brw_vs_prog_key, program_string_id),
- offsetof(struct brw_tcs_prog_key, program_string_id),
- offsetof(struct brw_tes_prog_key, program_string_id),
- offsetof(struct brw_gs_prog_key, program_string_id),
- offsetof(struct brw_wm_prog_key, program_string_id),
- offsetof(struct brw_cs_prog_key, program_string_id),
- };
- assert((int)stage >= 0 && stage < ARRAY_SIZE(stage_offsets));
- *(unsigned*)((uint8_t*)key + stage_offsets[stage]) = id;
-}
-
-void
brw_populate_default_key(const struct brw_compiler *compiler,
union brw_any_prog_key *prog_key,
struct gl_shader_program *sh_prog,
diff --git a/src/mesa/drivers/dri/i965/brw_program.h b/src/mesa/drivers/dri/i965/brw_program.h
index 117019d00c7..8eb9620ab1e 100644
--- a/src/mesa/drivers/dri/i965/brw_program.h
+++ b/src/mesa/drivers/dri/i965/brw_program.h
@@ -82,10 +82,6 @@ brw_assign_common_binding_table_offsets(const struct gen_device_info *devinfo,
uint32_t next_binding_table_offset);
void
-brw_prog_key_set_id(union brw_any_prog_key *key, gl_shader_stage stage,
- unsigned id);
-
-void
brw_populate_default_key(const struct brw_compiler *compiler,
union brw_any_prog_key *prog_key,
struct gl_shader_program *sh_prog,