freedreno/a6xx: cl_khr_image2d_from_buffer support
This allows sampling from a buffer as if it was a simple (single level/layer, linear) 2d image/texture. Add a helper to convert struct pipe_image_view to an apprpriate fdl_layout and wire it up in the image view and tex view paths. Can be tested with cl cts: ./test_image_streams 2D read CL_RG CL_SIGNED_INT16 CL_FILTER_NEAREST CL_ADDRESS_CLAMP_TO_EDGE UNNORMALIZED (for ex) Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35447>
This commit is contained in:
+1
-1
@@ -767,7 +767,7 @@ Rusticl OpenCL 2.0 -- all DONE:
|
||||
Pipes not started
|
||||
Extended 2D images creation in progress
|
||||
- CL_ABGR DONE
|
||||
- cl_khr_image2d_from_buffer DONE (iris, llvmpipe)
|
||||
- cl_khr_image2d_from_buffer DONE (freedreno, iris, llvmpipe)
|
||||
- cl_khr_depth_images DONE
|
||||
- from sRGB images in progress
|
||||
clCreateSamplerWithProperties DONE
|
||||
|
||||
Reference in New Issue
Block a user