Lines Matching refs:nr_samples
911 sctx->framebuffer.nr_samples > 1)
1182 S_028010_DECOMPRESS_Z_ON_FLUSH(sctx->framebuffer.nr_samples >= 4));
1663 unsigned nr_samples)
1681 return nr_samples > 1 ? V_008F1C_SQ_RSRC_IMG_2D_MSAA :
1684 return nr_samples > 1 ? V_008F1C_SQ_RSRC_IMG_2D_MSAA_ARRAY :
2151 if (rtex->resource.b.b.nr_samples > 1) {
2152 unsigned log_samples = util_logbase2(rtex->resource.b.b.nr_samples);
2175 if (rtex->resource.b.b.nr_samples > 1) {
2223 if (rtex->resource.b.b.nr_samples > 1) {
2224 z_info |= S_028040_NUM_SAMPLES(util_logbase2(rtex->resource.b.b.nr_samples));
2275 if (rtex->resource.b.b.nr_samples <= 1)
2292 switch (rtex->resource.b.b.nr_samples) {
2355 unsigned old_nr_samples = sctx->framebuffer.nr_samples;
2398 sctx->framebuffer.nr_samples = util_framebuffer_get_num_samples(state);
2399 sctx->framebuffer.log_samples = util_logbase2(sctx->framebuffer.nr_samples);
2463 if (sctx->framebuffer.nr_samples != old_nr_samples) {
2468 switch (sctx->framebuffer.nr_samples) {
2486 sctx->framebuffer.nr_samples);
2489 constbuf.buffer_size = sctx->framebuffer.nr_samples * 2 * 4;
2529 tex->resource.b.b.nr_samples > 1 ?
2576 state->cbufs[0]->texture->nr_samples > 1 &&
2578 state->cbufs[1]->texture->nr_samples <= 1;
2616 zb->base.texture->nr_samples > 1 ?
2665 unsigned nr_samples = sctx->framebuffer.nr_samples;
2667 /* Smoothing (only possible with nr_samples == 1) uses the same
2670 if (nr_samples <= 1 && sctx->smoothing_enabled)
2671 nr_samples = SI_NUM_SMOOTH_AA_SAMPLES;
2677 nr_samples = MAX2(nr_samples, 1);
2679 if (nr_samples >= 1 &&
2680 (nr_samples != sctx->msaa_sample_locs.nr_samples)) {
2681 sctx->msaa_sample_locs.nr_samples = nr_samples;
2682 cayman_emit_msaa_sample_locs(cs, nr_samples);
2695 if (sctx->framebuffer.nr_samples > 1 && rs && !rs->multisample_enable)
2721 cayman_emit_msaa_config(cs, sctx->framebuffer.nr_samples,
2737 if (sctx->framebuffer.nr_samples > 1)
2921 type = si_tex_dim(res->target, target, res->nr_samples);
2944 S_008F1C_BASE_LEVEL(res->nr_samples > 1 ?
2946 S_008F1C_LAST_LEVEL(res->nr_samples > 1 ?
2947 util_logbase2(res->nr_samples) :
2965 if (screen->b.chip_class <= CIK && res->nr_samples <= 1) {
2979 switch (res->nr_samples) {
3321 assert(mask == 0xffff || sctx->framebuffer.nr_samples > 1 ||