iris: bail if SLM is needed
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 19 Oct 2018 04:26:06 +0000 (21:26 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:09 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_state.c

index f36838262e584b99e6322683c0193cc85b98c749..68ecc1bb742f075ed952ead8c08fe16703723f4e 100644 (file)
@@ -4274,6 +4274,9 @@ iris_upload_compute_state(struct iris_context *ice,
    struct brw_stage_prog_data *prog_data = shader->prog_data;
    struct brw_cs_prog_data *cs_prog_data = (void *) prog_data;
 
+   // XXX: L3 configuration not set up for SLM
+   assert(prog_data->total_shared == 0);
+
    struct pipe_resource *grid_size_res = NULL;
    uint32_t grid_size_offset;
    if (grid->indirect) {