summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_gpe_gen6.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-08-08 13:43:57 +0800
committerChia-I Wu <[email protected]>2013-08-08 13:46:01 +0800
commitf9a4288bd282dfab97a40fc6dc9c046812e7d681 (patch)
tree3e12e3a048e9807add097c64a135a6ed803252c7 /src/gallium/drivers/ilo/ilo_gpe_gen6.c
parent19204081ce7edce1d9847d3826f355fde65d4783 (diff)
ilo: get rid of GPE tables completely
Move the estimate functions out of the tables and kill the tables.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_gpe_gen6.c')
-rw-r--r--src/gallium/drivers/ilo/ilo_gpe_gen6.c27
1 files changed, 8 insertions, 19 deletions
diff --git a/src/gallium/drivers/ilo/ilo_gpe_gen6.c b/src/gallium/drivers/ilo/ilo_gpe_gen6.c
index 143e6fe0a19..cd122734868 100644
--- a/src/gallium/drivers/ilo/ilo_gpe_gen6.c
+++ b/src/gallium/drivers/ilo/ilo_gpe_gen6.c
@@ -2456,10 +2456,10 @@ ilo_gpe_init_sampler_cso(const struct ilo_dev_info *dev,
}
}
-static int
-gen6_estimate_command_size(const struct ilo_dev_info *dev,
- enum ilo_gpe_gen6_command cmd,
- int arg)
+int
+ilo_gpe_gen6_estimate_command_size(const struct ilo_dev_info *dev,
+ enum ilo_gpe_gen6_command cmd,
+ int arg)
{
static const struct {
int header;
@@ -2517,10 +2517,10 @@ gen6_estimate_command_size(const struct ilo_dev_info *dev,
return (likely(count)) ? header + body * count : 0;
}
-static int
-gen6_estimate_state_size(const struct ilo_dev_info *dev,
- enum ilo_gpe_gen6_state state,
- int arg)
+int
+ilo_gpe_gen6_estimate_state_size(const struct ilo_dev_info *dev,
+ enum ilo_gpe_gen6_state state,
+ int arg)
{
static const struct {
int alignment;
@@ -2567,14 +2567,3 @@ gen6_estimate_state_size(const struct ilo_dev_info *dev,
return estimate;
}
-
-static const struct ilo_gpe_gen6 gen6_gpe = {
- .estimate_command_size = gen6_estimate_command_size,
- .estimate_state_size = gen6_estimate_state_size,
-};
-
-const struct ilo_gpe_gen6 *
-ilo_gpe_gen6_get(void)
-{
- return &gen6_gpe;
-}