mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
i965/blorp: Remove unused fields from blorp_surface_info
The only reason why we need layer or level is that we need the z-offset for 3-D surfaces. Let's just have the one field for that. Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
1495b6315e
commit
56746d04d5
2 changed files with 0 additions and 19 deletions
|
|
@ -168,9 +168,6 @@ brw_blorp_surface_info_init(struct brw_context *brw,
|
|||
info->z_offset = 0;
|
||||
}
|
||||
|
||||
info->level = level;
|
||||
info->layer = layer;
|
||||
|
||||
if (format == MESA_FORMAT_NONE)
|
||||
format = mt->format;
|
||||
|
||||
|
|
|
|||
|
|
@ -81,22 +81,6 @@ struct brw_blorp_surface_info
|
|||
/* Z offset into a 3-D texture or slice of a 2-D array texture. */
|
||||
uint32_t z_offset;
|
||||
|
||||
/**
|
||||
* The miplevel to use.
|
||||
*/
|
||||
uint32_t level;
|
||||
|
||||
/**
|
||||
* The 2D layer within the miplevel. Combined, level and layer define the
|
||||
* 2D miptree slice to use.
|
||||
*
|
||||
* Note: if mt is a 2D multisample array texture on Gen7+ using
|
||||
* INTEL_MSAA_LAYOUT_UMS or INTEL_MSAA_LAYOUT_CMS, layer is the physical
|
||||
* layer holding sample 0. So, for example, if mt->num_samples == 4, then
|
||||
* logical layer n corresponds to layer == 4*n.
|
||||
*/
|
||||
uint32_t layer;
|
||||
|
||||
uint32_t bo_offset;
|
||||
uint32_t tile_x_sa, tile_y_sa;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue