anv: Move INTERFACE_DESCRIPTOR_DATA setup to the pipeline

There are a few dynamic bits, namely binding table and sampler addresses,
but most of it is static and really belongs in the pipeline.  It certainly
doesn't belong in flush_compute_descriptor_set.  We'll use the same state
merging trick we use for gen7 DEPTH_STENCIL.

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
This commit is contained in:
Jason Ekstrand
2016-11-12 12:13:17 -08:00
parent 8db6f2e6eb
commit d33e2ad67c
3 changed files with 38 additions and 27 deletions

View File

@@ -1414,6 +1414,8 @@ struct anv_pipeline {
struct {
uint32_t wm_depth_stencil[4];
} gen9;
uint32_t interface_descriptor_data[8];
};
static inline bool