Lines Matching defs:shs

2196    struct iris_shader_state *shs = &ice->state.shaders[stage];
2204 if (shs->samplers[start + i] != state) {
2205 shs->samplers[start + i] = state;
2224 struct iris_shader_state *shs = &ice->state.shaders[stage];
2243 upload_state(ice->state.dynamic_uploader, &shs->sampler_table, size, 32);
2247 struct pipe_resource *res = shs->sampler_table.res;
2251 bo->address + shs->sampler_table.offset, size);
2253 shs->sampler_table.offset += iris_bo_offset_from_base_address(bo);
2258 struct iris_sampler_state *state = shs->samplers[i];
2259 struct iris_sampler_view *tex = shs->textures[i];
2860 struct iris_shader_state *shs = &ice->state.shaders[stage];
2866 shs->bound_image_views &=
2870 struct iris_image_view *iv = &shs->image[start_slot + i];
2878 shs->bound_image_views |= 1 << (start_slot + i);
2949 shs->sysvals_need_upload = true;
2979 struct iris_shader_state *shs = &ice->state.shaders[stage];
2982 shs->bound_sampler_views &=
2990 if (is_sampler_view_3d(shs->textures[start + i]) !=
2997 &shs->textures[start + i], NULL);
2998 shs->textures[start + i] = (struct iris_sampler_view *)pview;
3001 &shs->textures[start + i], pview);
3007 shs->bound_sampler_views |= 1 << (start + i);
3015 &shs->textures[start + i], NULL);
3073 struct iris_shader_state *shs = &ice->state.shaders[MESA_SHADER_TESS_CTRL];
3079 shs->sysvals_need_upload = true;
3107 struct iris_shader_state *shs = &ice->state.shaders[MESA_SHADER_VERTEX];
3116 shs->sysvals_need_upload = true;
3376 struct iris_shader_state *shs = &ice->state.shaders[stage];
3377 struct pipe_shader_buffer *cbuf = &shs->constbuf[index];
3380 pipe_resource_reference(&shs->constbuf_surf_state[index].res, NULL);
3383 shs->bound_cbufs |= 1u << index;
3403 shs->dirty_cbufs |= 1u << index;
3424 shs->bound_cbufs &= ~(1u << index);
3437 struct iris_shader_state *shs = &ice->state.shaders[stage];
3447 struct pipe_shader_buffer *cbuf = &shs->constbuf[sysval_cbuf_index];
3517 &shs->constbuf_surf_state[sysval_cbuf_index],
3520 shs->sysvals_need_upload = false;
3538 struct iris_shader_state *shs = &ice->state.shaders[stage];
3542 shs->bound_ssbos &= ~modified_bits;
3543 shs->writable_ssbos &= ~modified_bits;
3544 shs->writable_ssbos |= writable_bitmask << start_slot;
3549 struct pipe_shader_buffer *ssbo = &shs->ssbo[start_slot + i];
3551 &shs->ssbo_surf_state[start_slot + i];
3557 shs->bound_ssbos |= 1 << (start_slot + i);
3569 pipe_resource_reference(&shs->ssbo[start_slot + i].buffer, NULL);
3570 pipe_resource_reference(&shs->ssbo_surf_state[start_slot + i].res,
5052 struct iris_shader_state *shs, const struct shader_info *info,
5055 struct iris_image_view *iv = &shs->image[i];
5103 struct iris_shader_state *shs = &ice->state.shaders[stage];
5167 struct iris_sampler_view *view = shs->textures[i];
5174 uint32_t addr = use_image(batch, ice, shs, info, i);
5179 uint32_t addr = use_ubo_ssbo(batch, ice, &shs->constbuf[i],
5180 &shs->constbuf_surf_state[i], false,
5187 use_ubo_ssbo(batch, ice, &shs->ssbo[i], &shs->ssbo_surf_state[i],
5188 shs->writable_ssbos & (1u << i), IRIS_DOMAIN_NONE);
5335 struct iris_shader_state *shs = &ice->state.shaders[stage];
5354 struct pipe_shader_buffer *cbuf = &shs->constbuf[block_index];
5373 struct iris_shader_state *shs = &ice->state.shaders[stage];
5374 struct pipe_resource *res = shs->sampler_table.res;
5428 struct iris_shader_state *shs = &ice->state.shaders[stage];
5435 struct pipe_resource *sampler_res = shs->sampler_table.res;
5617 struct iris_shader_state *shs = &ice->state.shaders[stage];
5640 struct pipe_shader_buffer *cbuf = &shs->constbuf[block_index];
6012 struct iris_shader_state *shs = &ice->state.shaders[stage];
6018 if (shs->sysvals_need_upload)
6100 struct iris_shader_state *shs = &ice->state.shaders[stage];
6101 struct pipe_resource *res = shs->sampler_table.res;
6108 ptr.PointertoVSSamplerState = shs->sampler_table.offset;
7127 struct iris_shader_state *shs = &ice->state.shaders[MESA_SHADER_COMPUTE];
7170 .SamplerStatePointer = shs->sampler_table.offset,
7192 struct iris_shader_state *shs = &ice->state.shaders[MESA_SHADER_COMPUTE];
7292 idd.SamplerStatePointer = shs->sampler_table.offset;
7342 struct iris_shader_state *shs = &ice->state.shaders[MESA_SHADER_COMPUTE];
7358 shs->sysvals_need_upload) ||
7368 iris_use_optional_res(batch, shs->sampler_table.res, false,
7425 struct iris_shader_state *shs = &ice->state.shaders[stage];
7426 pipe_resource_reference(&shs->sampler_table.res, NULL);
7428 pipe_resource_reference(&shs->constbuf[i].buffer, NULL);
7429 pipe_resource_reference(&shs->constbuf_surf_state[i].res, NULL);
7432 pipe_resource_reference(&shs->image[i].base.resource, NULL);
7433 pipe_resource_reference(&shs->image[i].surface_state.ref.res, NULL);
7434 free(shs->image[i].surface_state.cpu);
7437 pipe_resource_reference(&shs->ssbo[i].buffer, NULL);
7438 pipe_resource_reference(&shs->ssbo_surf_state[i].res, NULL);
7442 &shs->textures[i], NULL);
7534 struct iris_shader_state *shs = &ice->state.shaders[s];
7542 uint32_t bound_cbufs = shs->bound_cbufs & ~1u;
7545 struct pipe_shader_buffer *cbuf = &shs->constbuf[i];
7546 struct iris_state_ref *surf_state = &shs->constbuf_surf_state[i];
7550 shs->dirty_cbufs |= 1u << i;
7559 uint32_t bound_ssbos = shs->bound_ssbos;
7562 struct pipe_shader_buffer *ssbo = &shs->ssbo[i];
7571 (shs->writable_ssbos >> i) & 1);
7577 uint32_t bound_sampler_views = shs->bound_sampler_views;
7580 struct iris_sampler_view *isv = shs->textures[i];
7591 uint32_t bound_image_views = shs->bound_image_views;
7594 struct iris_image_view *iv = &shs->image[i];