Skip to content

Error: No matching overload for function 'textureLod' found #628

Closed

Description

@mmatyas

When running Servo on Android, the following shader compile error occurs (after applying the previous two Android patches, #626 and #627):

D/RustAndroidGlueStdouterr(22216): DEBUG:webrender::device: compile "ps_rectangle"
D/RustAndroidGlueStdouterr(22216): DEBUG:webrender::device: compile "ps_rectangle"
D/RustAndroidGlueStdouterr(22216): Failed to compile shader: "ps_rectangle"
D/RustAndroidGlueStdouterr(22216): WARN:servo: Panic hook called.
D/RustAndroidGlueStdouterr(22216): 0:715: S0001: No matching overload for function 'textureLod' found
D/RustAndroidGlueStdouterr(22216): ERROR:servo: -- Shader compile failed - exiting --

Here's the textureLod call. The problem occurs on an Odroid XU3, running Android 4.4.4.

Related: servo/servo#13154

Activity

  1. glennw commented on Dec 12, 2016

    @glennw
    Member

    That's interesting - as far as I can see textureLod is part of es3. @kvark We could change this to a texture(Offset) right? (even if just as a workaround for now).

  2. kvark commented on Dec 12, 2016

    @kvark
    Member

    Oh, I think we just need to pass 0.0 for the LOD (instead of 0), since it's a float parameter on all overloads of this function. @mmatyas would you be able to confirm if this is the right fix?

  3. glennw commented on Dec 12, 2016

    @glennw
    Member

    Ah, that makes sense.

  4. mmatyas commented on Dec 12, 2016

    @mmatyas
    ContributorAuthor

    Thanks; at the moment I don't have the Odroid at hand, but I will try it tomorrow (GMT+1).

  5. mmatyas commented on Dec 13, 2016

    @mmatyas
    ContributorAuthor

    Using 0.0 fixed the problem, thanks!

  6. added a commit that references this issue on Dec 14, 2016
    ecd3cb4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions