2
0

P4 to Git Change 1571962 by skeely@skeely_HSA_linux on 2018/06/22 17:51:21

SWDEV-157321 - Mesa interop interface update.

	Interop in/out structs and header updated to match version at git://anongit.freedesktop.org/mesa/mesa
	Mostly minor changes, cleans up include structure avoiding GLX on Windows.

	Larger change is version tracking (now by numbers rather than struct size),
	added a field to mesa_glinterop_export_out giving the size of data written to out_driver_data,
	and corrected spelling of mesa_glinterop_export_out::internal_format.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/mesa_glinterop.h#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#90 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocglinterop.cpp#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocglinterop.hpp#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#36 edit
Este cometimento está contido em:
foreman
2018-06-22 18:00:13 -04:00
ascendente f0286b57c2
cometimento 75b68a5dac
5 ficheiros modificados com 207 adições e 169 eliminações
+2 -2
Ver ficheiro
@@ -184,8 +184,8 @@ bool Memory::createInteropBuffer(GLenum targetType, int miplevel) {
mesa_glinterop_export_in in = {0};
mesa_glinterop_export_out out = {0};
in.size = sizeof(mesa_glinterop_export_in);
out.size = sizeof(mesa_glinterop_export_out);
in.version = MESA_GLINTEROP_EXPORT_IN_VERSION;
out.version = MESA_GLINTEROP_EXPORT_OUT_VERSION;
if (owner()->getMemFlags() & CL_MEM_READ_ONLY)
in.access = MESA_GLINTEROP_ACCESS_READ_ONLY;