Seems a reasonable threshold for now.
Significantly speeds up Piglit's 1x1 glReadPixels (but, you know,
reading pixels in 1x1 blocks is NOT a good idea, especially if you
might be running on a less-than-perfect driver).
static int copy_threshold = -1;
if(copy_threshold < 0)
- {
- copy_threshold = debug_get_num_option("NOUVEAU_COPY_THRESHOLD", 0);
- if(copy_threshold < 0)
- copy_threshold = 0;
- }
+ copy_threshold = debug_get_num_option("NOUVEAU_COPY_THRESHOLD", 4);
int dst_to_gpu = dstr->usage != PIPE_USAGE_DYNAMIC && dstr->usage != PIPE_USAGE_STAGING;
int src_on_gpu = nvfx_resource_on_gpu(srcr);