Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register EXT_depth_clamp for GLES #240

Merged
merged 1 commit into from
Feb 5, 2019
Merged

Conversation

gerddie
Copy link
Contributor

@gerddie gerddie commented Jan 24, 2019

This extension provides the same interaction for OpenGL ES that ARB_depth_clamp does for OpenGL.

I went for an EXT extension because it is based on this already available ARB extension, and for that reason it makes sense to me to get it fully approved, but I could also put it in the MESA namespace (since there I will implement it). Many thanks for any comments.

@gerddie gerddie force-pushed the master branch 2 times, most recently from 46bbf68 to c8732c0 Compare January 24, 2019 12:51
@gerddie
Copy link
Contributor Author

gerddie commented Jan 25, 2019

Thanks for the review, I've force pushed a new version, but I didn't update the history, because I'm not sure whether this would be needed at this point. I hope that my changes are what you would expect, and I'm thankful for additional pointers if needed.

@oddhack
Copy link
Collaborator

oddhack commented Feb 4, 2019

@gerddie once you've resolved @dgkoch's feedback, please revert the generated headers - those always cause conflicts when merging so it's easiest for me to update the published headers after accepting the PR. Thanks!

ARB_depth_clamp does for OpenGL.

v2: Add GL_DEPTH_CLAMP_EXT for this extension (thanks  @kusma)

v3: - correct use of DEPTH_CLAMP to DEPTH_CLAMP_EXT
    - point o the issues in ARB_depth_clamp and only retain (and update)
      the wording for primitive with w_c <= 0 and point out differences to
      ARB_depth_clamp otherwise. (all thanks @dgkoch)

v4: - remove header changes from commit (@oddhack)

Signed-off-by: Gert Wollny <[email protected]>
@gerddie
Copy link
Contributor Author

gerddie commented Feb 4, 2019

@oddhack done, the feedback should also be resolved, I'm not sure why github is still putting that marker there, the attribute column that the first comment mentions has been removed.

Copy link
Contributor

@dgkoch dgkoch left a comment

Choose a reason for hiding this comment

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

Looks good to me now, and I think NVIDIA would support this.

@dgkoch
Copy link
Contributor

dgkoch commented Feb 4, 2019

Adding @pdaniell-nv to add to the ES WG agenda to see if there is any other feedback/interest from other ES vendors.

@gerddie do you have any tests planned for this?

@gerddie
Copy link
Contributor Author

gerddie commented Feb 4, 2019

@dgkoch I'm not sure what tests you mean, but we want to implement this in mesa to be able to run OpenGL in a virtualised environment on top on a host that supports only GLES via virglrenderer. There we have piglit tests that test ARB_depth_clamp in the virtualized guest and that will rely on the host exposed EXT_depth_clamp. If this is of interest we can also see how to add tests to the OpenGL ES CTS.

@oddhack oddhack merged commit 3db95f4 into KhronosGroup:master Feb 5, 2019
@dgkoch
Copy link
Contributor

dgkoch commented Feb 5, 2019

@gerddie I was thinking of the OpenGL ES CTS.
Unfortunately it doesn't even look like there are any existing GL tests for depth_clamp which could be ported..

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.

5 participants