Skip to content

Fix default precision of sampler2DArray - #627

Merged
bors-servo merged 1 commit into
servo:masterfrom
mmatyas:shader_default_precision_error
Dec 12, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
mmatyas:shader_default_precision_error

Conversation

@mmatyas

@mmatyas mmatyas commented Dec 12, 2016 •

Copy link
Copy Markdown
Contributor

This fixes the no default precision defined for variable 'sCache' error produced by Servo on Android.

Related: servo/servo#13154


This change is Reviewable

@kvark kvark left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@glennw

glennw commented Dec 12, 2016

Copy link
Copy Markdown
Member

Is GL_FRAGMENT_PRECISION_HIGH defined on non-ES (i.e. desktop implementations)? It might be best to wrap it with GL_ES defined too?

@kvark

kvark commented Dec 12, 2016 •

Copy link
Copy Markdown
Member

@glennw FYI, I don't think it matters:

Precision qualifiers in GLSL are supported for compatibility with OpenGL ES 2.0. They use the same syntax as ES 2.0's qualifiers, but they have no functional effects.

@glennw

glennw commented Dec 12, 2016

Copy link
Copy Markdown
Member

@kvark OK, that should be fine then.

@glennw

glennw commented Dec 12, 2016

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 660b3fd has been approved by glennw

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 660b3fd with merge b7b211b...

bors-servo pushed a commit that referenced this pull request Dec 12, 2016
Fix default precision of `sampler2DArray`

This fixes the `no default precision defined for variable 'sCache'` error produced by Servo on Android.

Related: servo/servo#13154

<!-- 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/627)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - status-travis

@bors-servo
bors-servo merged commit 660b3fd into servo:master Dec 12, 2016
@kvark

kvark commented Dec 13, 2016

Copy link
Copy Markdown
Member

It appears to be failing now on Windows/AMD:

ERROR: 0:6: error(#228) Type should be float or int

It doesn't like precision qualifier for sampler2DArray

@glennw

glennw commented Dec 13, 2016

Copy link
Copy Markdown
Member

@kvark OK, let's wrap it in GL_ES then?

@kvark

kvark commented Dec 13, 2016

Copy link
Copy Markdown
Member

@glennw yes, your intuition was correct, let's wrap it up

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