Skip to content

Add validation rule for QuerySet and Timestamp Query - #1161

Merged
kvark merged 13 commits into
gpuweb:mainfrom
haoxli:timestamp-query-validation
Nov 23, 2020
Merged

Add validation rule for QuerySet and Timestamp Query#1161
kvark merged 13 commits into
gpuweb:mainfrom
haoxli:timestamp-query-validation

Conversation

@haoxli

@haoxli haoxli commented Oct 21, 2020

Copy link
Copy Markdown
Contributor

Improve the description and validation rule for:

  • GPUQuerySet and GPUQuerySetDescriptor.
  • writeTimestamp on GPUCommandEncoder, GPUComputePassEncoder, GPURenderPassEncoder.

Preview | Diff

Improve the description and validation rule for:
- GPUQuerySet and GPUQuerySetDescriptor
- writeTimestamp on GPUCommandEncoder, GPUComputePassEncoder,
GPURenderPassEncoder.
@haoxli
haoxli requested review from Kangz, kainino0x and kvark October 21, 2020 00:57
Comment thread spec/index.bs Outdated
Comment thread spec/index.bs Outdated
Comment thread spec/index.bs
Comment thread spec/index.bs Outdated
Comment thread spec/index.bs Outdated
Comment thread spec/index.bs Outdated
Comment thread spec/index.bs Outdated
@haoxli
haoxli requested a review from Kangz October 22, 2020 02:07
Comment thread spec/index.bs Outdated
Comment thread spec/index.bs Outdated
Comment thread spec/index.bs
Comment thread spec/index.bs Outdated
Comment thread spec/index.bs Outdated
@haoxli
haoxli requested a review from kainino0x October 26, 2020 05:50

@kainino0x kainino0x left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking pretty good so far! A few small comments.

Comment thread spec/index.bs Outdated
Comment thread spec/index.bs Outdated
Comment thread spec/index.bs Outdated
Comment thread spec/index.bs Outdated
Comment thread spec/index.bs Outdated
Comment thread spec/index.bs Outdated
@haoxli
haoxli requested a review from kainino0x November 3, 2020 01:31

@Kangz Kangz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall validation logic looks good, but I think we might want to have more explicit logic to track the queries used in the render pass. Maybe it could be a follow up PR to unblock this one.

@kvark kvark left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. We can argue whether some pieces are better written formally (via internal slots and equations), this is better left to the editor meeting :)
One question about the contents though

Comment thread spec/index.bs Outdated

@kainino0x kainino0x left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the slow review, overall LGTM

Comment thread spec/index.bs Outdated
Comment thread spec/index.bs Outdated
Comment thread spec/index.bs Outdated
Comment thread spec/index.bs Outdated
haoxli and others added 4 commits November 11, 2020 15:35
Co-authored-by: Kai Ninomiya <kainino1@gmail.com>
Oh, I missed this one.

Co-authored-by: Kai Ninomiya <kainino1@gmail.com>
Co-authored-by: Kai Ninomiya <kainino1@gmail.com>
@haoxli
haoxli force-pushed the timestamp-query-validation branch from 36ce9b1 to 3b76112 Compare November 11, 2020 08:09
@haoxli
haoxli force-pushed the timestamp-query-validation branch from 3b76112 to f10d48b Compare November 11, 2020 08:15

@kainino0x kainino0x left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: force pushes make it hard to figure out what the diff is since my last review, so prefer to just make additional small commits instead, and reserve force-pushes for rebases. (Or just use merge commits instead of rebases when needed.)

Not really a problem for this PR right now since the final PR is small enough I can just look at the whole thing :)

Comment thread spec/index.bs Outdated
Comment thread spec/index.bs Outdated
Comment thread spec/index.bs Outdated
haoxli and others added 2 commits November 16, 2020 09:53
Co-authored-by: Kai Ninomiya <kainino1@gmail.com>
@kainino0x
kainino0x requested a review from kvark November 16, 2020 23:19
Comment thread spec/index.bs
**Called on:** {{GPURenderPassEncoder}} |this|.

**Arguments:**
<pre class=argumentdef for="GPURenderPassEncoder/writeTimestamp(querySet, queryIndex)">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did we consider a partial interface having this stuff, so that we can specify it once instead of repeating ourselves for every type of pass and the command encoder?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we have closely considered it (a mixin, I think you mean). I guess it depends on whether we expect anything in the algorithm to differ between them, but if not, we should probably try to do it.

@kvark
kvark merged commit 78e7c93 into gpuweb:main Nov 23, 2020
ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
…uweb#1161)

* Add validation,resource_usages,texture,in_render_misc:* - Part II

This patch adds the second part of the below test:
validation,resource_usages,texture,in_render_misc:*
- subresources,set_bind_group_on_same_index_depth_stencil_texture

* Address reviewer's comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants