The drm function to get the tiling is just a getter storing the two
pointers, so we don't need to go out of our way to avoid it.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
image->offset,
image->region->width,
image->region->height,
- image->region->pitch,
- image->region->tiling);
+ image->region->pitch);
if (!irb->mt)
return;
uint32_t offset,
uint32_t width,
uint32_t height,
- int pitch,
- uint32_t tiling)
+ int pitch)
{
struct intel_mipmap_tree *mt;
+ uint32_t tiling, swizzle;
struct intel_region *region = calloc(1, sizeof(*region));
if (!region)
return NULL;
+ drm_intel_bo_get_tiling(bo, &tiling, &swizzle);
+
/* Nothing will be able to use this miptree with the BO if the offset isn't
* aligned.
*/
0,
region->width,
region->height,
- region->pitch,
- region->tiling);
+ region->pitch);
if (!singlesample_mt)
goto fail;
uint32_t offset,
uint32_t width,
uint32_t height,
- int pitch,
- uint32_t tiling);
+ int pitch);
void
intel_update_winsys_renderbuffer_miptree(struct brw_context *intel,
irb->mt->format,
src_offset,
width, height,
- src_stride, I915_TILING_NONE);
+ src_stride);
if (!pbo_mt)
return false;
irb->mt->format,
dst_offset,
width, height,
- dst_stride, I915_TILING_NONE);
+ dst_stride);
if (!intel_miptree_blit(brw,
irb->mt, irb->mt_level, irb->mt_layer,
intelImage->mt->format,
src_offset,
image->Width, image->Height,
- src_stride, I915_TILING_NONE);
+ src_stride);
if (!pbo_mt)
return false;