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

Support all image sampler kinds with brush_image implementation. #2412

Merged
merged 1 commit into from Feb 13, 2018

Conversation

glennw
Copy link
Member

@glennw glennw commented Feb 13, 2018

As a follow up, we need to add better test coverage of these other
image types via a rawtest.


This change is Reviewable

@glennw
Copy link
Member Author

glennw commented Feb 13, 2018

I haven't tested this in a try build yet - will be able to kick one off in an hour or so.

r? @kvark cc @staktrace

@@ -46,7 +52,7 @@ void brush_vs(
vec4 brush_fs() {
vec2 uv = clamp(vUv.xy, vUvBounds.xy, vUvBounds.zw);

vec4 color = texture(sColor0, vec3(uv, vUv.z));
vec4 color = TEX_SAMPLE(sColor0, vec3(uv, vUv.z));
Copy link
Member

Choose a reason for hiding this comment

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

Actually, this would be incorrect, given that we want to use the mipmaps, and this macro always picks lod of 0.0

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch, fixed.

As a follow up, we need to add better test coverage of these other
image types via a rawtest.
@kvark
Copy link
Member

kvark commented Feb 13, 2018

Thanks Glenn! I'd like to see a try push, unless @kats wants to get this in quickly and bear with consequences :)

@staktrace
Copy link
Contributor

At the moment there's a big backlog of windows jobs in gecko CI, so I'm ok with landing this without a try push. If anything turns up I'll let you know.

@kvark
Copy link
Member

kvark commented Feb 13, 2018

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 85ebb41 has been approved by kvark

@bors-servo
Copy link
Contributor

⌛ Testing commit 85ebb41 with merge 111bdc4...

bors-servo pushed a commit that referenced this pull request Feb 13, 2018
Support all image sampler kinds with brush_image implementation.

As a follow up, we need to add better test coverage of these other
image types via a rawtest.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/2412)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-appveyor, status-taskcluster, status-travis
Approved by: kvark
Pushing 111bdc4 to master...

@bors-servo bors-servo merged commit 85ebb41 into servo:master Feb 13, 2018
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.

None yet

5 participants