radeonsi: remove DBG_NO_DISCARD_RANGE
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
@@ -368,7 +368,6 @@ static void *r600_buffer_transfer_map(struct pipe_context *ctx,
|
|||||||
struct pipe_transfer **ptransfer)
|
struct pipe_transfer **ptransfer)
|
||||||
{
|
{
|
||||||
struct r600_common_context *rctx = (struct r600_common_context*)ctx;
|
struct r600_common_context *rctx = (struct r600_common_context*)ctx;
|
||||||
struct r600_common_screen *rscreen = (struct r600_common_screen*)ctx->screen;
|
|
||||||
struct r600_resource *rbuffer = r600_resource(resource);
|
struct r600_resource *rbuffer = r600_resource(resource);
|
||||||
uint8_t *data;
|
uint8_t *data;
|
||||||
|
|
||||||
@@ -436,7 +435,6 @@ static void *r600_buffer_transfer_map(struct pipe_context *ctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((usage & PIPE_TRANSFER_DISCARD_RANGE) &&
|
if ((usage & PIPE_TRANSFER_DISCARD_RANGE) &&
|
||||||
!(rscreen->debug_flags & DBG(NO_DISCARD_RANGE)) &&
|
|
||||||
((!(usage & (PIPE_TRANSFER_UNSYNCHRONIZED |
|
((!(usage & (PIPE_TRANSFER_UNSYNCHRONIZED |
|
||||||
PIPE_TRANSFER_PERSISTENT)) &&
|
PIPE_TRANSFER_PERSISTENT)) &&
|
||||||
r600_can_dma_copy_buffer(rctx, box->x, 0, box->width)) ||
|
r600_can_dma_copy_buffer(rctx, box->x, 0, box->width)) ||
|
||||||
|
@@ -615,8 +615,6 @@ static const struct debug_named_value common_debug_options[] = {
|
|||||||
/* features */
|
/* features */
|
||||||
{ "nodma", DBG(NO_ASYNC_DMA), "Disable asynchronous DMA" },
|
{ "nodma", DBG(NO_ASYNC_DMA), "Disable asynchronous DMA" },
|
||||||
{ "nohyperz", DBG(NO_HYPERZ), "Disable Hyper-Z" },
|
{ "nohyperz", DBG(NO_HYPERZ), "Disable Hyper-Z" },
|
||||||
/* GL uses the word INVALIDATE, gallium uses the word DISCARD */
|
|
||||||
{ "noinvalrange", DBG(NO_DISCARD_RANGE), "Disable handling of INVALIDATE_RANGE map flags" },
|
|
||||||
{ "no2d", DBG(NO_2D_TILING), "Disable 2D tiling" },
|
{ "no2d", DBG(NO_2D_TILING), "Disable 2D tiling" },
|
||||||
{ "notiling", DBG(NO_TILING), "Disable tiling" },
|
{ "notiling", DBG(NO_TILING), "Disable tiling" },
|
||||||
{ "switch_on_eop", DBG(SWITCH_ON_EOP), "Program WD/IA to switch on end-of-packet." },
|
{ "switch_on_eop", DBG(SWITCH_ON_EOP), "Program WD/IA to switch on end-of-packet." },
|
||||||
|
@@ -101,7 +101,6 @@ enum {
|
|||||||
/* Driver options: */
|
/* Driver options: */
|
||||||
DBG_FORCE_DMA,
|
DBG_FORCE_DMA,
|
||||||
DBG_NO_ASYNC_DMA,
|
DBG_NO_ASYNC_DMA,
|
||||||
DBG_NO_DISCARD_RANGE,
|
|
||||||
DBG_NO_WC,
|
DBG_NO_WC,
|
||||||
DBG_CHECK_VM,
|
DBG_CHECK_VM,
|
||||||
DBG_RESERVE_VMID,
|
DBG_RESERVE_VMID,
|
||||||
|
Reference in New Issue
Block a user