P4 to Git Change 1088224 by gandryey@gera-dev-w7 on 2014/10/16 14:05:07

EPR #403341 - [Regression][OCL] P2P SDI to GPU (RGBA) and P2P SDI to GPU (RGB) show corruption on sdi output
	- Remove CALResGLBufferTypeEnum.
	- Code clean-up
	- Add a workaround for conformance fence_sync failures

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#195 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.hpp#77 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/include/cal/calcl.h#30 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.h#42 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDeviceGL.cpp#19 edit
This commit is contained in:
foreman
2014-10-16 14:25:54 -04:00
parent b124361187
commit 9b0402343e
5 changed files with 82 additions and 173 deletions
+5 -3
View File
@@ -12,6 +12,8 @@
#include "device/gpu/gpublit.hpp"
#include "device/gpu/gputimestamp.hpp"
#include "thread/atomic.hpp"
#include <GL/gl.h>
#include "GL/glATIInternal.h"
#include <string>
#include <fstream>
@@ -668,15 +670,15 @@ Resource::create(MemoryType memType, CreateParams* params, bool heap)
"We don't have OGL context!");
switch (oglRes->type_) {
case InteropVertexBuffer:
glType_ = CAL_RES_GL_BUFFER_TYPE_VERTEXBUFFER;
glType_ = GL_RESOURCE_ATTACH_VERTEXBUFFER_AMD;
break;
case InteropRenderBuffer:
glType_ = CAL_RES_GL_BUFFER_TYPE_RENDERBUFFER;
glType_ = GL_RESOURCE_ATTACH_RENDERBUFFER_AMD;
break;
case InteropTexture:
case InteropTextureViewLevel:
case InteropTextureViewCube:
glType_ = CAL_RES_GL_BUFFER_TYPE_TEXTURE;
glType_ = GL_RESOURCE_ATTACH_TEXTURE_AMD;
break;
default:
LogError("Unknown OGL interop type!");