3391
|
|
|
Kenney Phillis Jr |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
3390
|
|
|
Kenneth Graunke |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
3389
|
|
|
Vinson Lee |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
3388
|
|
texture-integer-glsl130: Expect 1 for alpha in R, RG, RGB cases.
Table 3.23 (on page 221) of the OpenGL 3.0 specification is:
+----------------------------------------+ | Texture Base | Texture source color | | Internal Format | C_s A_s | +-----------------+----------------------+ | ALPHA | (0, 0, 0) | A | | LUMINANCE | (L, L, L) | 1 | | LUMINANCE_ALPHA | (L, L, L) | A | | INTENSITY | (I, I, I) | I | | RED | (R, 0, 0) | 1 | | RG | (R, G, 0) | 1 | | RGB | (R, G, B) | 1 | | RGBA | (R, G, B) | A | +-----------------+----------------------+
From this, we see when sampling from RED, RG, and RGB textures, alpha is supposed to be one.
v2: Change commit message to quote the right part of the spec.
Reviewed-by: Eric Anholt <eric@anholt.net>
|
Kenneth Graunke |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
3387
|
|
|
Chad Versace |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
3386
|
|
|
Chad Versace |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
3385
|
|
|
Chad Versace |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
3384
|
|
|
Paul Berry |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
3383
|
|
|
Paul Berry |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
3382
|
|
|
Kenneth Graunke |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
3381
|
|
|
Ian Romanick |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
3380
|
|
|
Ian Romanick |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
3379
|
|
|
Ian Romanick |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
3378
|
|
|
Ian Romanick |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
3377
|
|
|
Ian Romanick |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
3376
|
|
|
Ian Romanick |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
3375
|
|
|
Aaron Watry |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
3374
|
|
|
Aaron Watry |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
3373
|
|
|
Aaron Watry |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|
3372
|
|
|
Brian Paul |
11 years ago
|
![Diff](/static/images/ico_diff.gif) |
|