summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/a5xx
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2018-07-24 14:12:24 -0400
committerRob Clark <[email protected]>2018-10-17 12:44:48 -0400
commit1d7fbe2cd1247edde06ac783813be096b88dc04b (patch)
tree0c7be408b5743c2bc271c9753d76f95b61e37927 /src/gallium/drivers/freedreno/a5xx
parent2e9c08c0bce8df63979327f3b1c3c828fd1b98da (diff)
freedreno/ir3: shader variant cache
Cache that maps gallium hwcso (in this case, 'struct ir3_shader') plus shader variant key to a generation specific state object. This could eventually replace the linked list of shader variants, but for now it lets us re-use the work currently done in fdN_program_emit() Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a5xx')
-rw-r--r--src/gallium/drivers/freedreno/a5xx/fd5_program.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_program.c b/src/gallium/drivers/freedreno/a5xx/fd5_program.c
index a30678d0477..8a0b2db0edc 100644
--- a/src/gallium/drivers/freedreno/a5xx/fd5_program.c
+++ b/src/gallium/drivers/freedreno/a5xx/fd5_program.c
@@ -38,6 +38,8 @@
#include "fd5_texture.h"
#include "fd5_format.h"
+#include "ir3_cache.h"
+
static struct ir3_shader *
create_shader_stateobj(struct pipe_context *pctx, const struct pipe_shader_state *cso,
enum shader_t type)