diff options
author | Tapani Pälli <[email protected]> | 2018-09-19 10:16:58 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2018-10-23 14:08:05 +0300 |
commit | 91d3a5d1a86915480e9e07cf370ad0e9743ab5b5 (patch) | |
tree | 43c2aeee25a1f8a1719ae65501e133d6f1dfd3d1 /src/mesa/drivers/dri/i965/intel_pixel_read.c | |
parent | bc021be78d2d5a36376494fca7eaf7f0728c6a29 (diff) |
i965: expose type of memcpy instead of memcpy function itself
There is currently no use of returned memcpy functions outside
intel_tiled_memcpy. Patch changes intel_get_memcpy to return memcpy
type instead of actual function. This makes it easier later to separate
streaming load copy in to own static library.
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_pixel_read.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_pixel_read.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_pixel_read.c b/src/mesa/drivers/dri/i965/intel_pixel_read.c index 09a3c3440fa..537ac057a36 100644 --- a/src/mesa/drivers/dri/i965/intel_pixel_read.c +++ b/src/mesa/drivers/dri/i965/intel_pixel_read.c @@ -87,7 +87,7 @@ intel_readpixels_tiled_memcpy(struct gl_context * ctx, struct brw_bo *bo; uint32_t cpp; - mem_copy_fn mem_copy = NULL; + mem_copy_fn_type copy_type; /* This fastpath is restricted to specific renderbuffer types: * a 2D BGRA, RGBA, L8 or A8 texture. It could be generalized to support @@ -125,7 +125,7 @@ intel_readpixels_tiled_memcpy(struct gl_context * ctx, if (rb->_BaseFormat == GL_RGB) return false; - if (!intel_get_memcpy(rb->Format, format, type, &mem_copy, &cpp)) + if (!intel_get_memcpy_type(rb->Format, format, type, ©_type, &cpp)) return false; if (!irb->mt || @@ -206,7 +206,7 @@ intel_readpixels_tiled_memcpy(struct gl_context * ctx, dst_pitch, irb->mt->surf.row_pitch_B, brw->has_swizzling, irb->mt->surf.tiling, - mem_copy + copy_type ); brw_bo_unmap(bo); |