forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/WebKit/WebKit
- Loading branch information
Showing
226 changed files
with
17,876 additions
and
1,807 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
JSTests/wasm/stress/cc-int-to-int-cross-module-with-exception.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
LayoutTests/fast/inline/floating-dialog-becomes-modal-crash-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PASS if no assert or crash. |
16 changes: 16 additions & 0 deletions
16
LayoutTests/fast/inline/floating-dialog-becomes-modal-crash.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<style> | ||
dialog { | ||
position: static; | ||
float: right; | ||
display: inline; | ||
} | ||
</style> | ||
PASS if no assert or crash. | ||
<dialog id=dialog> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
|
||
document.body.offsetHeight; | ||
dialog.showModal(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CONSOLE MESSAGE: 0 | ||
CONSOLE MESSAGE: no validation error | ||
layer at (0,0) size 800x600 | ||
RenderView at (0,0) size 800x600 | ||
layer at (0,0) size 800x600 | ||
RenderBlock {HTML} at (0,0) size 800x600 | ||
RenderBody {BODY} at (8,8) size 784x584 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<script> | ||
globalThis.testRunner?.waitUntilDone(); | ||
const log = console.debug; | ||
|
||
onload = async () => { | ||
let adapter = await navigator.gpu.requestAdapter({}); | ||
let device = await adapter.requestDevice({}); | ||
device.pushErrorScope('validation'); | ||
let earlierBuffer = device.createBuffer({size: 4, usage: GPUBufferUsage.UNIFORM, mappedAtCreation: true}); | ||
let earlierU32 = new Uint32Array(earlierBuffer.getMappedRange()); | ||
earlierU32[0] = 10101010; | ||
earlierBuffer.unmap(); | ||
let vertexBuffer = device.createBuffer({size: 4, usage: GPUBufferUsage.VERTEX}); | ||
let code = ` | ||
struct VertexOutput { | ||
@builtin(position) position : vec4f, | ||
@location(0) @interpolate(flat) something: u32, | ||
} | ||
@vertex | ||
fn v(@location(0) fromVertexBuffer: u32) -> VertexOutput { | ||
var v = VertexOutput(); | ||
v.something = fromVertexBuffer; | ||
return v; | ||
} | ||
@fragment | ||
fn f(@location(0) @interpolate(flat) something: u32) -> @location(0) u32 { | ||
return something; | ||
} | ||
`; | ||
let module = device.createShaderModule({code}); | ||
|
||
let pipeline = device.createRenderPipeline({ | ||
layout: device.createPipelineLayout({bindGroupLayouts: []}), | ||
vertex: { | ||
module, | ||
buffers: [{ | ||
arrayStride: 256, | ||
attributes: [{format: 'uint32', offset: 0, shaderLocation: 0}], | ||
}], | ||
}, | ||
fragment: {module, targets: [{format: 'r32uint'}]}, | ||
primitive: {topology: 'point-list'}, | ||
}); | ||
|
||
let texture = device.createTexture({format: 'r32uint', size: [1], usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.COPY_SRC}); | ||
let renderPassDescriptor = { | ||
colorAttachments: [{ | ||
view: texture.createView(), | ||
clearValue: [0, 0, 0, 0], | ||
loadOp: 'clear', storeOp: 'store', | ||
}], | ||
}; | ||
let indirectBuffer = device.createBuffer({usage: GPUBufferUsage.INDIRECT, size: 16, mappedAtCreation: true}); | ||
let indirectU32 = new Uint32Array(indirectBuffer.getMappedRange()); | ||
indirectU32[0] = 1; | ||
indirectU32[1] = 1; | ||
indirectU32[2] = 0xff_ff_ff_ff; | ||
indirectBuffer.unmap(); | ||
let commandEncoder = device.createCommandEncoder(); | ||
let renderPassEncoder = commandEncoder.beginRenderPass(renderPassDescriptor); | ||
renderPassEncoder.setPipeline(pipeline); | ||
renderPassEncoder.setVertexBuffer(0, vertexBuffer); | ||
renderPassEncoder.drawIndirect(indirectBuffer, 0); | ||
renderPassEncoder.end(); | ||
let outputBuffer = device.createBuffer({size: 4, usage: GPUBufferUsage.COPY_DST | GPUBufferUsage.MAP_READ}); | ||
commandEncoder.copyTextureToBuffer({texture}, {buffer: outputBuffer}, {width: 1}); | ||
device.queue.submit([commandEncoder.finish()]); | ||
await device.queue.onSubmittedWorkDone(); | ||
await outputBuffer.mapAsync(GPUMapMode.READ); | ||
let outputU32 = new Uint32Array(outputBuffer.getMappedRange()); | ||
log(outputU32); | ||
outputBuffer.unmap(); | ||
let error = await device.popErrorScope(); | ||
if (error) { | ||
log('validation error'); | ||
log(error.message); | ||
} else { | ||
log('no validation error'); | ||
} | ||
globalThis.testRunner?.notifyDone(); | ||
}; | ||
</script> |
7 changes: 7 additions & 0 deletions
7
LayoutTests/fast/webgpu/regression/repro_274994b-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CONSOLE MESSAGE: 0 | ||
CONSOLE MESSAGE: no validation error | ||
layer at (0,0) size 800x600 | ||
RenderView at (0,0) size 800x600 | ||
layer at (0,0) size 800x600 | ||
RenderBlock {HTML} at (0,0) size 800x600 | ||
RenderBody {BODY} at (8,8) size 784x584 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<script> | ||
globalThis.testRunner?.waitUntilDone(); | ||
const log = console.debug; | ||
|
||
onload = async () => { | ||
let adapter = await navigator.gpu.requestAdapter({}); | ||
let device = await adapter.requestDevice({}); | ||
device.pushErrorScope('validation'); | ||
let earlierBuffer = device.createBuffer({size: 4, usage: GPUBufferUsage.UNIFORM, mappedAtCreation: true}); | ||
let earlierU32 = new Uint32Array(earlierBuffer.getMappedRange()); | ||
earlierU32[0] = 10101010; | ||
earlierBuffer.unmap(); | ||
let vertexBuffer = device.createBuffer({size: 4, usage: GPUBufferUsage.VERTEX}); | ||
let code = ` | ||
struct VertexOutput { | ||
@builtin(position) position : vec4f, | ||
@location(0) @interpolate(flat) something: u32, | ||
} | ||
@vertex | ||
fn v(@location(0) fromVertexBuffer: u32) -> VertexOutput { | ||
var v = VertexOutput(); | ||
v.something = fromVertexBuffer; | ||
return v; | ||
} | ||
@fragment | ||
fn f(@location(0) @interpolate(flat) something: u32) -> @location(0) u32 { | ||
return something; | ||
} | ||
`; | ||
let module = device.createShaderModule({code}); | ||
|
||
let pipeline = device.createRenderPipeline({ | ||
layout: device.createPipelineLayout({bindGroupLayouts: []}), | ||
vertex: { | ||
module, | ||
buffers: [{ | ||
arrayStride: 256, | ||
stepMode: 'instance', | ||
attributes: [{format: 'uint32', offset: 0, shaderLocation: 0}], | ||
}], | ||
}, | ||
fragment: {module, targets: [{format: 'r32uint'}]}, | ||
primitive: {topology: 'point-list'}, | ||
}); | ||
|
||
let texture = device.createTexture({format: 'r32uint', size: [1], usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.COPY_SRC}); | ||
let renderPassDescriptor = { | ||
colorAttachments: [{ | ||
view: texture.createView(), | ||
clearValue: [0, 0, 0, 0], | ||
loadOp: 'clear', storeOp: 'store', | ||
}], | ||
}; | ||
let indirectBuffer = device.createBuffer({usage: GPUBufferUsage.INDIRECT, size: 16, mappedAtCreation: true}); | ||
let indirectU32 = new Uint32Array(indirectBuffer.getMappedRange()); | ||
indirectU32[0] = 1; | ||
indirectU32[1] = 1; | ||
indirectU32[3] = 0xff_ff_ff_ff; | ||
indirectBuffer.unmap(); | ||
let commandEncoder = device.createCommandEncoder(); | ||
let renderPassEncoder = commandEncoder.beginRenderPass(renderPassDescriptor); | ||
renderPassEncoder.setPipeline(pipeline); | ||
renderPassEncoder.setVertexBuffer(0, vertexBuffer); | ||
renderPassEncoder.drawIndirect(indirectBuffer, 0); | ||
renderPassEncoder.end(); | ||
let outputBuffer = device.createBuffer({size: 4, usage: GPUBufferUsage.COPY_DST | GPUBufferUsage.MAP_READ}); | ||
commandEncoder.copyTextureToBuffer({texture}, {buffer: outputBuffer}, {width: 1}); | ||
device.queue.submit([commandEncoder.finish()]); | ||
await device.queue.onSubmittedWorkDone(); | ||
await outputBuffer.mapAsync(GPUMapMode.READ); | ||
let outputU32 = new Uint32Array(outputBuffer.getMappedRange()); | ||
log(outputU32); | ||
outputBuffer.unmap(); | ||
let error = await device.popErrorScope(); | ||
if (error) { | ||
log('validation error'); | ||
log(error.message); | ||
} else { | ||
log('no validation error'); | ||
} | ||
globalThis.testRunner?.notifyDone(); | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CONSOLE MESSAGE: 0 | ||
CONSOLE MESSAGE: no validation error | ||
layer at (0,0) size 800x600 | ||
RenderView at (0,0) size 800x600 | ||
layer at (0,0) size 800x600 | ||
RenderBlock {HTML} at (0,0) size 800x600 | ||
RenderBody {BODY} at (8,8) size 784x584 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<script> | ||
globalThis.testRunner?.waitUntilDone(); | ||
const log = console.debug; | ||
|
||
const format = 'r32uint'; | ||
|
||
onload = async () => { | ||
let adapter = await navigator.gpu.requestAdapter({}); | ||
let device = await adapter.requestDevice({}); | ||
device.pushErrorScope('validation'); | ||
let module = device.createShaderModule({ | ||
code: ` | ||
struct VertexOutput { | ||
@builtin(position) position : vec4f, | ||
@location(0) @interpolate(flat) something: u32, | ||
} | ||
@vertex | ||
fn v(@location(0) fromVertexBuffer: u32) -> VertexOutput { | ||
var v = VertexOutput(); | ||
v.something = fromVertexBuffer; | ||
return v; | ||
} | ||
@fragment | ||
fn f(@location(0) @interpolate(flat) something: u32) -> @location(0) u32 { | ||
return something; | ||
} | ||
`, | ||
}); | ||
let pipeline = device.createRenderPipeline({ | ||
layout: device.createPipelineLayout({bindGroupLayouts: []}), | ||
vertex: { | ||
module, | ||
buffers: [{ | ||
arrayStride: 4, | ||
attributes: [{format: 'uint32', offset: 0, shaderLocation: 0}], | ||
}], | ||
}, | ||
fragment: {module, targets: [{format}]}, | ||
primitive: {topology: 'point-list'}, | ||
}); | ||
let texture = device.createTexture({format, size: [1], usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.COPY_SRC}); | ||
let renderPassDescriptor = {colorAttachments: [{view: texture.createView(), clearValue: [0, 0, 0, 0], loadOp: 'clear', storeOp: 'store'}]}; | ||
let commandEncoder = device.createCommandEncoder(); | ||
let renderPassEncoder = commandEncoder.beginRenderPass(renderPassDescriptor); | ||
renderPassEncoder.setPipeline(pipeline); | ||
let vertexBuffer = device.createBuffer({size: 260, usage: GPUBufferUsage.VERTEX}); | ||
let vertexBuffer2 = device.createBuffer({size: 4, usage: GPUBufferUsage.VERTEX}); | ||
let laterBuffer = device.createBuffer({size: 4, usage: GPUBufferUsage.QUERY_RESOLVE, mappedAtCreation: true}); | ||
new Uint32Array(laterBuffer.getMappedRange())[0] = 987654321; | ||
laterBuffer.unmap(); | ||
let indexBuffer = device.createBuffer({usage: GPUBufferUsage.INDEX, size: 4, mappedAtCreation: true}); | ||
let indexU32 = new Uint32Array(indexBuffer.getMappedRange()); | ||
indexU32[0] = 64; | ||
indexBuffer.unmap(); | ||
renderPassEncoder.setIndexBuffer(indexBuffer, 'uint32'); | ||
renderPassEncoder.setVertexBuffer(0, vertexBuffer); | ||
renderPassEncoder.drawIndexed(1); | ||
renderPassEncoder.setVertexBuffer(0, vertexBuffer2); | ||
renderPassEncoder.drawIndexed(1); | ||
renderPassEncoder.end(); | ||
let outputBuffer = device.createBuffer({size: 4, usage: GPUBufferUsage.COPY_DST | GPUBufferUsage.MAP_READ}); | ||
commandEncoder.copyTextureToBuffer({texture}, {buffer: outputBuffer}, {width: 1}); | ||
let commandBuffer = commandEncoder.finish(); | ||
device.queue.submit([commandBuffer]); | ||
await device.queue.onSubmittedWorkDone(); | ||
await outputBuffer.mapAsync(GPUMapMode.READ); | ||
let outputU32 = new Uint32Array(outputBuffer.getMappedRange()); | ||
log(outputU32); | ||
outputBuffer.unmap(); | ||
let error = await device.popErrorScope(); | ||
if (error) { | ||
log(error.message); | ||
} else { | ||
log('no validation error'); | ||
} | ||
globalThis.testRunner?.notifyDone(); | ||
}; | ||
</script> |
Oops, something went wrong.