Lines Matching defs:surf
1295 struct r600_surface *surf)
1297 struct pipe_resource *pipe_buffer = surf->base.texture;
1300 evergreen_set_color_surface_buffer(rctx, (struct r600_resource *)surf->base.texture,
1301 surf->base.format, 0, pipe_buffer->width0,
1304 surf->cb_color_base = color.offset;
1305 surf->cb_color_dim = color.dim;
1306 surf->cb_color_info = color.info | S_028C70_RAT(1);
1307 surf->cb_color_pitch = color.pitch;
1308 surf->cb_color_slice = color.slice;
1309 surf->cb_color_view = color.view;
1310 surf->cb_color_attrib = color.attrib;
1311 surf->cb_color_fmask = color.fmask;
1312 surf->cb_color_fmask_slice = color.fmask_slice;
1314 surf->cb_color_view = 0;
1323 struct r600_surface *surf)
1325 struct r600_texture *rtex = (struct r600_texture*)surf->base.texture;
1326 unsigned level = surf->base.u.tex.level;
1330 surf->base.u.tex.first_layer,
1331 surf->base.u.tex.last_layer,
1332 surf->base.format,
1335 surf->alphatest_bypass = color.ntype == V_028C70_NUMBER_UINT ||
1337 surf->export_16bpc = color.export_16bpc;
1340 surf->cb_color_base = color.offset;
1341 surf->cb_color_dim = color.dim;
1342 surf->cb_color_info = color.info;
1343 surf->cb_color_pitch = color.pitch;
1344 surf->cb_color_slice = color.slice;
1345 surf->cb_color_view = color.view;
1346 surf->cb_color_attrib = color.attrib;
1347 surf->cb_color_fmask = color.fmask;
1348 surf->cb_color_fmask_slice = color.fmask_slice;
1350 surf->color_initialized = true;
1354 struct r600_surface *surf)
1357 struct r600_texture *rtex = (struct r600_texture*)surf->base.texture;
1358 unsigned level = surf->base.u.tex.level;
1365 format = r600_translate_dbformat(surf->base.format);
1392 surf->db_z_info = S_028040_ARRAY_MODE(array_mode) |
1400 surf->db_z_info |= S_028040_NUM_SAMPLES(util_logbase2(rtex->resource.b.b.nr_samples));
1405 surf->db_depth_base = offset;
1406 surf->db_depth_view = S_028008_SLICE_START(surf->base.u.tex.first_layer) |
1407 S_028008_SLICE_MAX(surf->base.u.tex.last_layer);
1408 surf->db_depth_size = S_028058_PITCH_TILE_MAX(levelinfo->nblk_x / 8 - 1) |
1410 surf->db_depth_slice = S_02805C_SLICE_TILE_MAX(levelinfo->nblk_x *
1422 surf->db_stencil_base = stencil_offset >> 8;
1423 surf->db_stencil_info = S_028044_FORMAT(V_028044_STENCIL_8) |
1426 surf->db_stencil_base = offset;
1427 surf->db_stencil_info = S_028044_FORMAT(V_028044_STENCIL_INVALID);
1432 surf->db_htile_data_base = va >> 8;
1433 surf->db_htile_surface = S_028ABC_HTILE_WIDTH(1) |
1436 surf->db_z_info |= S_028040_TILE_SURFACE_ENABLE(1);
1437 surf->db_preload_control = 0;
1440 surf->depth_initialized = true;
1447 struct r600_surface *surf;
1473 surf = (struct r600_surface*)state->cbufs[i];
1474 if (!surf)
1479 rtex = (struct r600_texture*)surf->base.texture;
1483 if (!surf->color_initialized) {
1484 evergreen_init_color_surface(rctx, surf);
1487 if (!surf->export_16bpc) {
1502 surf = (struct r600_surface*)state->cbufs[0];
1503 if (surf) {
1504 alphatest_bypass = surf->alphatest_bypass;
1505 export_16bpc = surf->export_16bpc;
1520 surf = (struct r600_surface*)state->zsbuf;
1524 if (!surf->depth_initialized) {
1525 evergreen_init_depth_surface(rctx, surf);
1533 if (rctx->db_state.rsurf != surf) {
1534 rctx->db_state.rsurf = surf;