mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-04 06:00:17 +00:00
Fixed a bug in the CUDA kernel.
This commit is contained in:
parent
c6dcd30785
commit
634187f6c5
@ -396,11 +396,11 @@ computeRestrictedEdge(float *fVertex, float *fVaryings, int *E0_IT, int offset,
|
||||
|
||||
DeviceVertex<NUM_VERTEX_ELEMENTS> dst;
|
||||
dst.clear();
|
||||
|
||||
dst.addWithWeight(&vertex[eidx0], 0.25f);
|
||||
dst.addWithWeight(&vertex[eidx1], 0.25f);
|
||||
dst.addWithWeight(&vertex[eidx2], 0.25f);
|
||||
dst.addWithWeight(&vertex[eidx3], 0.25f);
|
||||
vertex[offset+i-tableOffset] = dst;
|
||||
|
||||
if(NUM_VARYING_ELEMENTS > 0){
|
||||
DeviceVertex<NUM_VARYING_ELEMENTS> dstVarying;
|
||||
@ -917,7 +917,7 @@ void OsdCudaComputeRestrictedEdge(float *vertex, float *varying,
|
||||
int varyingLength, int varyingStride,
|
||||
int *E_IT, int offset, int tableOffset, int start, int end)
|
||||
{
|
||||
//computeEdge<0, 3><<<512,32>>>(vertex, varying, E_IT, offset, start, end);
|
||||
//computeRestrictedEdge<0, 3><<<512,32>>>(vertex, varying, E_IT, offset, start, end);
|
||||
OPT_KERNEL(0, 0, computeRestrictedEdge, 512, 32, (vertex, varying, E_IT, offset, tableOffset, start, end));
|
||||
OPT_KERNEL(0, 3, computeRestrictedEdge, 512, 32, (vertex, varying, E_IT, offset, tableOffset, start, end));
|
||||
OPT_KERNEL(3, 0, computeRestrictedEdge, 512, 32, (vertex, varying, E_IT, offset, tableOffset, start, end));
|
||||
|
Loading…
Reference in New Issue
Block a user