mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 21:08:11 +02:00
llvmpipe: Don't force a linear to tiled conversion after rasterization on debug builds.
Only do this if runtime debugging flags to show subtiles/tiles are set.
This commit is contained in:
parent
82715bb227
commit
2b7fbccfdc
1 changed files with 12 additions and 10 deletions
|
|
@ -569,18 +569,20 @@ outline_subtiles(uint8_t *tile)
|
|||
static void
|
||||
lp_rast_tile_end(struct lp_rasterizer_task *task)
|
||||
{
|
||||
#if DEBUG
|
||||
struct lp_rasterizer *rast = task->rast;
|
||||
unsigned buf;
|
||||
#ifdef DEBUG
|
||||
if (LP_DEBUG & (DEBUG_SHOW_SUBTILES | DEBUG_SHOW_TILES)) {
|
||||
struct lp_rasterizer *rast = task->rast;
|
||||
unsigned buf;
|
||||
|
||||
for (buf = 0; buf < rast->state.nr_cbufs; buf++) {
|
||||
uint8_t *color = lp_rast_get_color_block_pointer(task, buf,
|
||||
task->x, task->y);
|
||||
for (buf = 0; buf < rast->state.nr_cbufs; buf++) {
|
||||
uint8_t *color = lp_rast_get_color_block_pointer(task, buf,
|
||||
task->x, task->y);
|
||||
|
||||
if (LP_DEBUG & DEBUG_SHOW_SUBTILES)
|
||||
outline_subtiles(color);
|
||||
else if (LP_DEBUG & DEBUG_SHOW_TILES)
|
||||
outline_tile(color);
|
||||
if (LP_DEBUG & DEBUG_SHOW_SUBTILES)
|
||||
outline_subtiles(color);
|
||||
else if (LP_DEBUG & DEBUG_SHOW_TILES)
|
||||
outline_tile(color);
|
||||
}
|
||||
}
|
||||
#else
|
||||
(void) outline_subtiles;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue