File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/webgpu/web_platform/copyToTexture Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -836,8 +836,15 @@ g.test('color_space_conversion')
836836 maxDiffULPsForNormFormat : 1 ,
837837 } ;
838838 if ( srcColorSpace !== dstColorSpace ) {
839- // Color space conversion seems prone to errors up to about 0.0003 on f32, 0.0007 on f16.
840- texelCompareOptions . maxFractionalDiff = 0.001 ;
839+ if ( dstColorFormat . endsWith ( '32float' ) ) {
840+ texelCompareOptions . maxFractionalDiff = 0.0003 ;
841+ } else if ( dstColorFormat . endsWith ( '16float' ) ) {
842+ texelCompareOptions . maxFractionalDiff = 0.0007 ;
843+ } else if ( dstColorFormat === 'rg11b10ufloat' ) {
844+ texelCompareOptions . maxFractionalDiff = 0.015 ;
845+ } else {
846+ texelCompareOptions . maxFractionalDiff = 0.001 ;
847+ }
841848 } else {
842849 texelCompareOptions . maxDiffULPsForFloatFormat = 1 ;
843850 }
You can’t perform that action at this time.
0 commit comments