intel/blorp: Add option to emit packets that disable Mesh

If a driver doesn't support Mesh, don't emit anything.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13660>
This commit is contained in:
Caio Oliveira
2021-04-29 15:10:57 -07:00
parent ecba8178bd
commit 8fc6a11f0e
7 changed files with 34 additions and 6 deletions

View File

@@ -38,6 +38,10 @@ extern "C" {
struct blorp_batch;
struct blorp_params;
struct blorp_config {
bool use_mesh_shading;
};
struct blorp_context {
void *driver_ctx;
@@ -56,10 +60,12 @@ struct blorp_context {
uint32_t prog_data_size,
uint32_t *kernel_out, void *prog_data_out);
void (*exec)(struct blorp_batch *batch, const struct blorp_params *params);
struct blorp_config config;
};
void blorp_init(struct blorp_context *blorp, void *driver_ctx,
struct isl_device *isl_dev);
struct isl_device *isl_dev, const struct blorp_config *config);
void blorp_finish(struct blorp_context *blorp);
enum blorp_batch_flags {