prog_data->binding_table.gather_texture_start = 0xd0d0d0d0;
}
+ if (info->num_images) {
+ prog_data->binding_table.image_start = next_binding_table_offset;
+ next_binding_table_offset += info->num_images;
+ } else {
+ prog_data->binding_table.image_start = 0xd0d0d0d0;
+ }
+
int num_ubos = info->num_ubos + (nir->num_uniforms > 0 ? 1 : 0);
if (num_ubos) {
prog_data->binding_table.shader_time_start = 0xd0d0d0d0;
- if (info->num_images) {
- prog_data->binding_table.image_start = next_binding_table_offset;
- next_binding_table_offset += info->num_images;
- } else {
- prog_data->binding_table.image_start = 0xd0d0d0d0;
- }
-
/* This may or may not be used depending on how the compile goes. */
prog_data->binding_table.pull_constants_start = next_binding_table_offset;
next_binding_table_offset++;
push_bt_entry(addr);
}
+ for (int i = 0; i < info->num_images; i++) {
+ uint32_t addr = use_image(batch, ice, shs, i);
+ push_bt_entry(addr);
+ }
+
const int num_ubos = iris_get_shader_num_ubos(ice, stage);
for (int i = 0; i < num_ubos; i++) {
}
}
- if (info->num_images > 0) {
- for (int i = 0; i < info->num_images; i++) {
- uint32_t addr = use_image(batch, ice, shs, i);
- push_bt_entry(addr);
- }
- }
-
#if 0
// XXX: not implemented yet
assert(prog_data->binding_table.plane_start[1] == 0xd0d0d0d0);