Lines Matching refs:sscreen
380 static void si_blend_check_commutativity(struct si_screen *sscreen, struct si_state_blend *blend, in si_blend_check_commutativity() argument
406 (func == PIPE_BLEND_ADD && sscreen->commutative_blend_add)) in si_blend_check_commutativity()
823 struct si_screen *sscreen = ((struct si_context *)ctx)->screen; in si_create_rs_state() local
915 S_028A48_ALTERNATE_RBS_PER_TILE(sscreen->info.chip_class >= GFX9)); in si_create_rs_state()
930 … S_028814_KEEP_TOGETHER_ENABLE(sscreen->info.chip_class >= GFX10 ? rs->polygon_mode_enabled : 0)); in si_create_rs_state()
1575 struct si_screen *sscreen = (struct si_screen *)screen; in si_translate_texformat() local
1579 assert(sscreen->info.chip_class <= GFX9); in si_translate_texformat()
1595 if (sscreen->info.chip_class <= GFX8) in si_translate_texformat()
1632 if (!sscreen->info.has_format_bc1_through_bc7) in si_translate_texformat()
1652 (sscreen->info.family == CHIP_STONEY || sscreen->info.family == CHIP_VEGA10 || in si_translate_texformat()
1653 sscreen->info.family == CHIP_RAVEN || sscreen->info.family == CHIP_RAVEN2)) { in si_translate_texformat()
1677 if (!sscreen->info.has_format_bc1_through_bc7) in si_translate_texformat()
1706 if (!sscreen->info.has_format_bc1_through_bc7) in si_translate_texformat()
1884 static unsigned si_tex_dim(struct si_screen *sscreen, struct si_texture *tex, unsigned view_target, in si_tex_dim() argument
1897 sscreen->info.chip_class == GFX9 && in si_tex_dim()
1930 struct si_screen *sscreen = (struct si_screen *)screen; in si_is_sampler_format_supported() local
1932 if (sscreen->info.chip_class >= GFX10) { in si_is_sampler_format_supported()
2061 struct si_screen *sscreen = (struct si_screen *)screen; in si_is_vertex_format_supported() local
2089 if (sscreen->info.chip_class >= GFX10) { in si_is_vertex_format_supported()
2120 struct si_screen *sscreen = (struct si_screen *)screen; in si_is_format_supported() local
2143 const unsigned max_eqaa_samples = sscreen->info.num_render_backends == 1 ? 8 : 16; in si_is_format_supported()
2150 if (!sscreen->info.has_eqaa_surface_allocator || util_format_is_depth_or_stencil(format)) { in si_is_format_supported()
2173 si_is_colorbuffer_format_supported(sscreen->info.chip_class, format)) { in si_is_format_supported()
4398 struct si_screen *sscreen = sctx->screen; in si_create_sampler_state() local
4400 unsigned max_aniso = sscreen->force_aniso >= 0 ? sscreen->force_aniso : state->max_anisotropy; in si_create_sampler_state()
4402 bool trunc_coord = !sscreen->options.no_trunc_coord && in si_create_sampler_state()
4434 if (sscreen->info.chip_class >= GFX10) { in si_create_sampler_state()
4456 if (sscreen->info.chip_class <= GFX9) in si_create_sampler_state()
4525 struct si_screen *sscreen = (struct si_screen *)ctx->screen; in si_create_vertex_elements() local
4543 count > sscreen->num_vbos_in_user_sgprs ? count - sscreen->num_vbos_in_user_sgprs : 0; in si_create_vertex_elements()
4636 always_fix = sscreen->info.chip_class <= GFX8 && sscreen->info.family != CHIP_STONEY && in si_create_vertex_elements()
4681 (sscreen->info.chip_class == GFX6 || sscreen->info.chip_class >= GFX10); in si_create_vertex_elements()
4682 bool opencode = sscreen->options.vs_fetch_always_opencode; in si_create_vertex_elements()
4708 if (sscreen->info.chip_class >= GFX10) { in si_create_vertex_elements()
4724 &sscreen->b, 0, PIPE_USAGE_DEFAULT, num_divisors * sizeof(divisor_factors[0])); in si_create_vertex_elements()
4730 sscreen->ws->buffer_map(v->instance_divisor_factor_buffer->buf, NULL, PIPE_MAP_WRITE); in si_create_vertex_elements()
5001 void si_init_screen_state_functions(struct si_screen *sscreen) in si_init_screen_state_functions() argument
5003 sscreen->b.is_format_supported = si_is_format_supported; in si_init_screen_state_functions()
5005 if (sscreen->info.chip_class >= GFX10) { in si_init_screen_state_functions()
5006 sscreen->make_texture_descriptor = gfx10_make_texture_descriptor; in si_init_screen_state_functions()
5008 sscreen->make_texture_descriptor = si_make_texture_descriptor; in si_init_screen_state_functions()
5049 struct si_screen *sscreen = sctx->screen; in si_set_raster_config() local
5050 unsigned num_rb = MIN2(sscreen->info.num_render_backends, 16); in si_set_raster_config()
5051 unsigned rb_mask = sscreen->info.enabled_rb_mask; in si_set_raster_config()
5052 unsigned raster_config = sscreen->pa_sc_raster_config; in si_set_raster_config()
5053 unsigned raster_config_1 = sscreen->pa_sc_raster_config_1; in si_set_raster_config()
5069 struct si_screen *sscreen = sctx->screen; in si_init_cs_preamble_state() local
5071 bool has_clear_state = sscreen->info.has_clear_state; in si_init_cs_preamble_state()
5147 cu_mask_ps = u_bit_consecutive(0, sscreen->info.min_good_cu_per_sa); in si_init_cs_preamble_state()
5151 unsigned num_cu_per_sh = sscreen->info.min_good_cu_per_sa; in si_init_cs_preamble_state()
5160 if (!sscreen->info.use_late_alloc) { in si_init_cs_preamble_state()
5170 cu_mask_gs = sscreen->use_ngg && sctx->family != CHIP_NAVI14 ? 0xfff3 : 0xffff; in si_init_cs_preamble_state()
5173 if (!sscreen->info.use_late_alloc) { in si_init_cs_preamble_state()
5251 if (sscreen->info.chip_class <= GFX9) { in si_init_cs_preamble_state()
5269 S_028C48_MAX_ALLOC_COUNT(sscreen->info.pbb_max_alloc_count - 1) | in si_init_cs_preamble_state()
5309 if (sscreen->info.num_render_backends <= 4) { in si_init_cs_preamble_state()
5352 sscreen->info.pa_sc_tile_steering_override); in si_init_cs_preamble_state()