mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-17 15:40:20 +01:00
i915g: Fallback to sw for npot copies
i915g's npot support is incomplete, so let's not use it for copies. This fixes a bunch of piglit tests.
This commit is contained in:
parent
b419ca937a
commit
82a76e61e7
1 changed files with 3 additions and 2 deletions
|
|
@ -94,8 +94,9 @@ i915_surface_copy_render(struct pipe_context *pipe,
|
|||
struct pipe_sampler_view src_templ, *src_view;
|
||||
struct pipe_surface dst_templ, *dst_view;
|
||||
|
||||
/* Fallback for buffers. */
|
||||
if ((dst->target == PIPE_BUFFER && src->target == PIPE_BUFFER)) {
|
||||
/* Fallback for buffers and npot. */
|
||||
if ((dst->target == PIPE_BUFFER && src->target == PIPE_BUFFER) ||
|
||||
!util_is_power_of_two(src_width0) || !util_is_power_of_two(src_height0)) {
|
||||
util_resource_copy_region(pipe, dst, dst_level, dstx, dsty, dstz,
|
||||
src, src_level, src_box);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue