Summary: | [bisected regression] piglit spec/glsl-1.50/compiler/incorrect-in-layout-qualifier-repeated-prim.geom | ||
---|---|---|---|
Product: | Mesa | Reporter: | Jordan Justen <jljusten> |
Component: | glsl-compiler | Assignee: | Samuel Iglesias Gonsálvez <siglesias> |
Status: | RESOLVED FIXED | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | huax.lu, idr, jljusten, vlee |
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Patch to fix the issue |
Description
Jordan Justen
2014-07-02 00:47:01 UTC
*** Bug 80781 has been marked as a duplicate of this bug. *** Created attachment 102112 [details] [review] Patch to fix the issue I have reproduced the error. Attached is the patch to fix it. Please test it. If it is OK I will send it to the mailing list. (In reply to comment #2) > Created attachment 102112 [details] [review] [review] > Patch to fix the issue > > I have reproduced the error. Attached is the patch to fix it. > > Please test it. If it is OK I will send it to the mailing list. Were you able to verify the patch? It is usually easier to reply to email with comments. So, I would suggest just sending it to the list after you have tested it and feel fairly confident in the patch. Nevertheless, my comments on the patch are, how about creating a new local variable? ast_type_qualifier allowed_duplicates_mask; allowed_duplicates_mask.flags.i = ubo_mat_mask.flags.i | ubo_layout_mask.flags.i | ubo_binding_mask.flags.i; if (state->stage == MESA_SHADER_GEOMETRY) allowed_duplicates_mask.flags.i |= stream_layout_mask.flags.i; (In reply to comment #3) > (In reply to comment #2) > > Created attachment 102112 [details] [review] [review] [review] > > Patch to fix the issue > > > > I have reproduced the error. Attached is the patch to fix it. > > > > Please test it. If it is OK I will send it to the mailing list. > > Were you able to verify the patch? > Yes, I verified it. > It is usually easier to reply to email with comments. > So, I would suggest just sending it to the list after > you have tested it and feel fairly confident in the > patch. > OK, I will do that as of now. Thanks for the tip! > Nevertheless, my comments on the patch are, > how about creating a new local variable? > > ast_type_qualifier allowed_duplicates_mask; > allowed_duplicates_mask.flags.i = > ubo_mat_mask.flags.i | > ubo_layout_mask.flags.i | > ubo_binding_mask.flags.i; > if (state->stage == MESA_SHADER_GEOMETRY) > allowed_duplicates_mask.flags.i |= > stream_layout_mask.flags.i; Good idea. I'm going to create that variable to simplify the code and submit it to the mailing list. Thanks, Sam *** Bug 80836 has been marked as a duplicate of this bug. *** Fixed in 7f0420700c473caee00a84596b22a600a7517b4d |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.