mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 18:00:10 +01:00
i965/blorp: Add fields brw_blorp_mip_info::level,layer
The new fields define the 2D miptree slice to be used. A following patch will pass the new fields through to intel_miptree_slice_has_hiz(). Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
parent
2a416a9b1b
commit
87f4541bc1
2 changed files with 15 additions and 0 deletions
|
|
@ -30,6 +30,8 @@
|
|||
|
||||
brw_blorp_mip_info::brw_blorp_mip_info()
|
||||
: mt(NULL),
|
||||
level(0),
|
||||
layer(0),
|
||||
width(0),
|
||||
height(0),
|
||||
x_offset(0),
|
||||
|
|
@ -50,6 +52,8 @@ brw_blorp_mip_info::set(struct intel_mipmap_tree *mt,
|
|||
intel_miptree_check_level_layer(mt, level, layer);
|
||||
|
||||
this->mt = mt;
|
||||
this->level = level;
|
||||
this->layer = layer;
|
||||
this->width = mt->level[level].width;
|
||||
this->height = mt->level[level].height;
|
||||
|
||||
|
|
|
|||
|
|
@ -68,6 +68,17 @@ public:
|
|||
|
||||
struct intel_mipmap_tree *mt;
|
||||
|
||||
/**
|
||||
* The miplevel to use.
|
||||
*/
|
||||
uint32_t level;
|
||||
|
||||
/**
|
||||
* The 2D layer within the miplevel. Combined, level and layer define the
|
||||
* 2D miptree slice to use.
|
||||
*/
|
||||
uint32_t layer;
|
||||
|
||||
/**
|
||||
* Width of the miplevel to be used. For surfaces using
|
||||
* INTEL_MSAA_LAYOUT_IMS, this is measured in samples, not pixels.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue