Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4)

Issue 6460074: Shader translator converted single-element vector swizzle to direct index access. It is not wrong, … (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by Alok Priyadarshi
Modified:
13 years, 8 months ago
Reviewers:
kbr1, dgkoch
CC:
angleproject-review_googlegroups.com
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Shader translator converted single-element vector swizzle to direct index access. It is not wrong, but unnecessary and moreover it triggers a MESA optimizer bug. Committed: https://code.google.com/p/angleproject/source/detail?r=1246

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -44 lines) Patch
M src/compiler/glslang.y View 1 chunk +4 lines, -12 lines 0 comments Download
M src/compiler/glslang_tab.cpp View 2 chunks +24 lines, -32 lines 0 comments Download

Messages

Total messages: 5
Alok Priyadarshi
The main motivation for this change is to avoid triggering a MESA optimizer bug.
13 years, 8 months ago (2012-08-10 21:35:00 UTC) #1
kbr1
LGTM I'd like to know why the original code was written the way it was... ...
13 years, 8 months ago (2012-08-11 00:38:27 UTC) #2
Alok Priyadarshi
I am not sure why the original code was written that way. I suspect they ...
13 years, 8 months ago (2012-08-13 16:45:19 UTC) #3
dgkoch
On 2012/08/13 16:45:19, Alok Priyadarshi wrote: > I am not sure why the original code ...
13 years, 8 months ago (2012-08-13 17:33:36 UTC) #4
kbr1
13 years, 8 months ago (2012-08-13 18:34:58 UTC) #5
On 2012/08/13 16:45:19, Alok Priyadarshi wrote:
> What kind of test are you looking for? Something that has a single element
> access? We certainly do not want to compare translated output.

Agreed, certainly not. I was thinking about a simple rendering test (or shader
compilation test? What triggers the Mesa bug?) that causes the bug to occur.
Simply running the test will ensure that ANGLE -- or Mesa -- doesn't regress
again in this area.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b