diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/r600_cs.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r600_cs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/r600_cs.c index cb1acffd2430..38ce5d0427e3 100644 --- a/drivers/gpu/drm/radeon/r600_cs.c +++ b/drivers/gpu/drm/radeon/r600_cs.c | |||
@@ -941,7 +941,7 @@ static int r600_cs_check_reg(struct radeon_cs_parser *p, u32 reg, u32 idx) | |||
941 | track->db_depth_control = radeon_get_ib_value(p, idx); | 941 | track->db_depth_control = radeon_get_ib_value(p, idx); |
942 | break; | 942 | break; |
943 | case R_028010_DB_DEPTH_INFO: | 943 | case R_028010_DB_DEPTH_INFO: |
944 | if (!p->keep_tiling_flags && | 944 | if (!(p->cs_flags & RADEON_CS_KEEP_TILING_FLAGS) && |
945 | r600_cs_packet_next_is_pkt3_nop(p)) { | 945 | r600_cs_packet_next_is_pkt3_nop(p)) { |
946 | r = r600_cs_packet_next_reloc(p, &reloc); | 946 | r = r600_cs_packet_next_reloc(p, &reloc); |
947 | if (r) { | 947 | if (r) { |
@@ -993,7 +993,7 @@ static int r600_cs_check_reg(struct radeon_cs_parser *p, u32 reg, u32 idx) | |||
993 | case R_0280B4_CB_COLOR5_INFO: | 993 | case R_0280B4_CB_COLOR5_INFO: |
994 | case R_0280B8_CB_COLOR6_INFO: | 994 | case R_0280B8_CB_COLOR6_INFO: |
995 | case R_0280BC_CB_COLOR7_INFO: | 995 | case R_0280BC_CB_COLOR7_INFO: |
996 | if (!p->keep_tiling_flags && | 996 | if (!(p->cs_flags & RADEON_CS_KEEP_TILING_FLAGS) && |
997 | r600_cs_packet_next_is_pkt3_nop(p)) { | 997 | r600_cs_packet_next_is_pkt3_nop(p)) { |
998 | r = r600_cs_packet_next_reloc(p, &reloc); | 998 | r = r600_cs_packet_next_reloc(p, &reloc); |
999 | if (r) { | 999 | if (r) { |
@@ -1293,7 +1293,7 @@ static int r600_check_texture_resource(struct radeon_cs_parser *p, u32 idx, | |||
1293 | mip_offset <<= 8; | 1293 | mip_offset <<= 8; |
1294 | 1294 | ||
1295 | word0 = radeon_get_ib_value(p, idx + 0); | 1295 | word0 = radeon_get_ib_value(p, idx + 0); |
1296 | if (!p->keep_tiling_flags) { | 1296 | if (!(p->cs_flags & RADEON_CS_KEEP_TILING_FLAGS)) { |
1297 | if (tiling_flags & RADEON_TILING_MACRO) | 1297 | if (tiling_flags & RADEON_TILING_MACRO) |
1298 | word0 |= S_038000_TILE_MODE(V_038000_ARRAY_2D_TILED_THIN1); | 1298 | word0 |= S_038000_TILE_MODE(V_038000_ARRAY_2D_TILED_THIN1); |
1299 | else if (tiling_flags & RADEON_TILING_MICRO) | 1299 | else if (tiling_flags & RADEON_TILING_MICRO) |
@@ -1625,7 +1625,7 @@ static int r600_packet3_check(struct radeon_cs_parser *p, | |||
1625 | return -EINVAL; | 1625 | return -EINVAL; |
1626 | } | 1626 | } |
1627 | base_offset = (u32)((reloc->lobj.gpu_offset >> 8) & 0xffffffff); | 1627 | base_offset = (u32)((reloc->lobj.gpu_offset >> 8) & 0xffffffff); |
1628 | if (!p->keep_tiling_flags) { | 1628 | if (!(p->cs_flags & RADEON_CS_KEEP_TILING_FLAGS)) { |
1629 | if (reloc->lobj.tiling_flags & RADEON_TILING_MACRO) | 1629 | if (reloc->lobj.tiling_flags & RADEON_TILING_MACRO) |
1630 | ib[idx+1+(i*7)+0] |= S_038000_TILE_MODE(V_038000_ARRAY_2D_TILED_THIN1); | 1630 | ib[idx+1+(i*7)+0] |= S_038000_TILE_MODE(V_038000_ARRAY_2D_TILED_THIN1); |
1631 | else if (reloc->lobj.tiling_flags & RADEON_TILING_MICRO) | 1631 | else if (reloc->lobj.tiling_flags & RADEON_TILING_MICRO) |