diff options
author | Chia-I Wu <[email protected]> | 2013-05-14 18:47:03 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-05-15 15:08:54 +0800 |
commit | ca349e02171058c47fea610b2d884e4b08b371ac (patch) | |
tree | 6605cbe6d1c0521ffd4cb60fbdffdbde07ef9fbb /src/gallium/drivers/ilo/ilo_gpe_gen7.c | |
parent | 013424678e2604a45c420ec403e6f12b82446b24 (diff) |
ilo: simplify ilo_texture_get_slice_offset()
Always return a tile-aligned offset. Also fix for W tiling.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_gpe_gen7.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_gpe_gen7.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_gpe_gen7.c b/src/gallium/drivers/ilo/ilo_gpe_gen7.c index ba69906271b..03236ecc467 100644 --- a/src/gallium/drivers/ilo/ilo_gpe_gen7.c +++ b/src/gallium/drivers/ilo/ilo_gpe_gen7.c @@ -1496,7 +1496,7 @@ gen7_fill_normal_SURFACE_STATE(const struct ilo_dev_info *dev, assert(num_levels == 1 && num_layers == 1); layer_offset = ilo_texture_get_slice_offset(tex, - first_level, first_layer, true, &x_offset, &y_offset); + first_level, first_layer, &x_offset, &y_offset); assert(x_offset % 4 == 0); assert(y_offset % 2 == 0); |