disable more tests and update expectations

This commit is contained in:
Kunal Mohan 2020-08-09 20:18:09 +05:30
parent 268c45fea7
commit 507f7e2789
5 changed files with 24 additions and 4975 deletions

View file

@ -161,7 +161,7 @@
]
},
"version.js": [
"7b1785ec171eb58b928815765f369cf72d1a1e4c",
"4d5e72c0442fdbdd4d5ceeefa14dcbaafae4ffaa",
[]
]
},
@ -191,7 +191,7 @@
"operation": {
"buffers": {
"map.spec.js": [
"476ef48f4be2351bada4f3bcc737d3a51bc0454c",
"f751b721d5f87013334e9e240ca517c6447a84f5",
[]
],
"map_detach.spec.js": [
@ -417,11 +417,7 @@
"testharness": {
"webgpu": {
"cts.html": [
"ad914da28ee10849b37c5a691a28c4d357f8835c",
[
"webgpu/cts.html?q=webgpu:api,operation,buffers,map:*",
{}
],
"e87ceb79a409fc3e3ddcccf38e48b865740e0809",
[
"webgpu/cts.html?q=webgpu:api,operation,buffers,map_detach:*",
{}
@ -450,10 +446,6 @@
"webgpu/cts.html?q=webgpu:api,operation,render_pass,storeOp:*",
{}
],
[
"webgpu/cts.html?q=webgpu:api,operation,resource_init,copied_texture_clear:*",
{}
],
[
"webgpu/cts.html?q=webgpu:api,validation,createBindGroup:*",
{}

File diff suppressed because it is too large Load diff

View file

@ -1,3 +1,3 @@
// AUTO-GENERATED - DO NOT EDIT. See tools/gen_version.
export const version = 'fa13892836639121598e65b57abd7e882c3c1cad-dirty';
export const version = 'a4499c8ced40640242a40448c4d4258e3fb830d3';

View file

@ -27,7 +27,7 @@
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script type=module src=../webgpu/common/runtime/wpt.js></script>
<meta name=variant content='?q=webgpu:api,operation,buffers,map:*'>
<!--<meta name=variant content='?q=webgpu:api,operation,buffers,map:*'>-->
<meta name=variant content='?q=webgpu:api,operation,buffers,map_detach:*'>
<meta name=variant content='?q=webgpu:api,operation,buffers,map_oom:*'>
<meta name=variant content='?q=webgpu:api,operation,command_buffer,basic:*'>
@ -35,7 +35,7 @@
<meta name=variant content='?q=webgpu:api,operation,command_buffer,render,basic:*'>
<meta name=variant content='?q=webgpu:api,operation,fences:*'>
<meta name=variant content='?q=webgpu:api,operation,render_pass,storeOp:*'>
<meta name=variant content='?q=webgpu:api,operation,resource_init,copied_texture_clear:*'>
<!--<meta name=variant content='?q=webgpu:api,operation,resource_init,copied_texture_clear:*'>-->
<meta name=variant content='?q=webgpu:api,validation,createBindGroup:*'>
<!--<meta name=variant content='?q=webgpu:api,validation,createBindGroupLayout:*'>-->
<meta name=variant content='?q=webgpu:api,validation,createPipelineLayout:*'>

View file

@ -32,8 +32,12 @@ const kCases = [
];
function reifyMapRange(bufferSize, range) {
const offset = range[0] ?? 0;
return [offset, range[1] ?? bufferSize - offset];
var _range$, _range$2;
const offset = (_range$ = range[0]) !== null && _range$ !== void 0 ? _range$ : 0;
return [
offset,
(_range$2 = range[1]) !== null && _range$2 !== void 0 ? _range$2 : bufferSize - offset,
];
}
g.test('mapAsync,write')
@ -86,6 +90,7 @@ g.test('mappedAtCreation')
.combine(pbool('mappable'))
)
.fn(async t => {
var _range$3;
const { size, range, mappable } = t.params;
const [, rangeSize] = reifyMapRange(size, range);
@ -96,5 +101,10 @@ g.test('mappedAtCreation')
});
const arrayBuffer = buffer.getMappedRange(...range);
t.checkMapWrite(buffer, range[0] ?? 0, arrayBuffer, rangeSize);
t.checkMapWrite(
buffer,
(_range$3 = range[0]) !== null && _range$3 !== void 0 ? _range$3 : 0,
arrayBuffer,
rangeSize
);
});