Bug 223320

Summary: webgl/1.0.4/conformance/programs/program-handling.html fails
Product: WebKit Reporter: Kimmo Kinnunen <kkinnunen>
Component: WebGLAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: dino, kbr, kkinnunen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 222812    

Description Kimmo Kinnunen 2021-03-16 23:36:53 PDT
webgl/1.0.4/conformance/programs/program-handling.html fails
Comment 1 Kimmo Kinnunen 2021-03-17 00:27:47 PDT
*** Bug 223339 has been marked as a duplicate of this bug. ***
Comment 2 Kimmo Kinnunen 2021-03-17 01:20:14 PDT
https://www.khronos.org/registry/webgl/sdk/tests/conformance/programs/program-handling.html?webglVersion=1&quiet=0&quick=1


Canvas.getContext
Draw red with valid program
PASS should be red
Change fragment shader to one that will not link
Draw orange
PASS should be orange
Try linking
PASS link should fail
Draw green to show even though link failed old program is still valid
FAIL should be green
at (0, 0) expected: 0,255,0,255 was 255,127,0,255
Detach and delete shaders
Draw blue to show even though shaders are gone program is still valid
FAIL should be blue
at (0, 0) expected: 0,0,255,255 was 255,127,0,255
Call useProgram to show old program can not be made current again
PASS getError was expected value: INVALID_OPERATION : should be invalid
Draw purple to show the original program is still usable
FAIL should be purple
at (0, 0) expected: 255,0,255,255 was 255,127,0,255
FAIL getError expected: NO_ERROR. Was INVALID_OPERATION : should be no errors
PASS successfullyParsed is true

TEST COMPLETE
Comment 3 Kimmo Kinnunen 2021-03-17 01:45:54 PDT
At least macOS 11.3, iMacPro1,1, Radeon Pro Vega 56
Comment 4 Radar WebKit Bug Importer 2021-04-26 09:22:52 PDT
<rdar://problem/77160559>