diff options
| -rw-r--r-- | drivers/gpu/drm/vc4/vc4_render_cl.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_render_cl.c b/drivers/gpu/drm/vc4/vc4_render_cl.c index 8a2a312e2c1b..dea97f45e5af 100644 --- a/drivers/gpu/drm/vc4/vc4_render_cl.c +++ b/drivers/gpu/drm/vc4/vc4_render_cl.c | |||
| @@ -321,15 +321,6 @@ static int vc4_create_rcl_bo(struct drm_device *dev, struct vc4_exec_info *exec, | |||
| 321 | list_add_tail(&to_vc4_bo(&setup->rcl->base)->unref_head, | 321 | list_add_tail(&to_vc4_bo(&setup->rcl->base)->unref_head, |
| 322 | &exec->unref_list); | 322 | &exec->unref_list); |
| 323 | 323 | ||
| 324 | rcl_u8(setup, VC4_PACKET_TILE_RENDERING_MODE_CONFIG); | ||
| 325 | rcl_u32(setup, | ||
| 326 | (setup->color_write ? (setup->color_write->paddr + | ||
| 327 | args->color_write.offset) : | ||
| 328 | 0)); | ||
| 329 | rcl_u16(setup, args->width); | ||
| 330 | rcl_u16(setup, args->height); | ||
| 331 | rcl_u16(setup, args->color_write.bits); | ||
| 332 | |||
| 333 | /* The tile buffer gets cleared when the previous tile is stored. If | 324 | /* The tile buffer gets cleared when the previous tile is stored. If |
| 334 | * the clear values changed between frames, then the tile buffer has | 325 | * the clear values changed between frames, then the tile buffer has |
| 335 | * stale clear values in it, so we have to do a store in None mode (no | 326 | * stale clear values in it, so we have to do a store in None mode (no |
| @@ -349,6 +340,15 @@ static int vc4_create_rcl_bo(struct drm_device *dev, struct vc4_exec_info *exec, | |||
| 349 | rcl_u32(setup, 0); /* no address, since we're in None mode */ | 340 | rcl_u32(setup, 0); /* no address, since we're in None mode */ |
| 350 | } | 341 | } |
| 351 | 342 | ||
| 343 | rcl_u8(setup, VC4_PACKET_TILE_RENDERING_MODE_CONFIG); | ||
| 344 | rcl_u32(setup, | ||
| 345 | (setup->color_write ? (setup->color_write->paddr + | ||
| 346 | args->color_write.offset) : | ||
| 347 | 0)); | ||
| 348 | rcl_u16(setup, args->width); | ||
| 349 | rcl_u16(setup, args->height); | ||
| 350 | rcl_u16(setup, args->color_write.bits); | ||
| 351 | |||
| 352 | for (y = min_y_tile; y <= max_y_tile; y++) { | 352 | for (y = min_y_tile; y <= max_y_tile; y++) { |
| 353 | for (x = min_x_tile; x <= max_x_tile; x++) { | 353 | for (x = min_x_tile; x <= max_x_tile; x++) { |
| 354 | bool first = (x == min_x_tile && y == min_y_tile); | 354 | bool first = (x == min_x_tile && y == min_y_tile); |
