diff options
author | Topi Pohjolainen <[email protected]> | 2017-06-22 14:03:31 +0300 |
---|---|---|
committer | Topi Pohjolainen <[email protected]> | 2017-07-20 11:32:21 +0300 |
commit | a92e6ff31579649ecbd2a6d5d5cf7311916d2bac (patch) | |
tree | 6ef3d439594e09bba5e7bfb3d22b62920b8dfe67 /src/mesa/drivers/dri/i965/intel_pixel_copy.c | |
parent | 76e2f390f9863a356d1419982dec705260d67eff (diff) |
i965/miptree: Switch to isl_surf::samples
v2 (Jason):
- Don't trigger miptree re-creation in vain later on with ISL
based. Core GL uses zero to indicate single sampled while
ISL uses one - this would cause intel_miptree_match_image()
to always fail.
- Now that native miptree is already using sample number of
one, there is no need for MAX2() when converting to ISL.
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Signed-off-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_pixel_copy.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_pixel_copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_pixel_copy.c b/src/mesa/drivers/dri/i965/intel_pixel_copy.c index 3ffd68c048e..3f8df3002f5 100644 --- a/src/mesa/drivers/dri/i965/intel_pixel_copy.c +++ b/src/mesa/drivers/dri/i965/intel_pixel_copy.c @@ -101,7 +101,7 @@ do_blit_copypixels(struct gl_context * ctx, return false; } - if (draw_irb->mt->num_samples > 1 || read_irb->mt->num_samples > 1) { + if (draw_irb->mt->surf.samples > 1 || read_irb->mt->surf.samples > 1) { perf_debug("glCopyPixels() fallback: multisampled buffers\n"); return false; } |