Commit Graph
3059 Commits
Author SHA1 Message Date
Jamie Madill f4e39bfdcb Fix non-square matrix-to-matrix constructors.
This fixes some broken tests in dEQP:
functional.shaders.conversions.matrix_to_matrix

BUG=angle:712

Change-Id: I0538595f2913a2c1d4f0da901d65d608a6580d19
Reviewed-on: https://chromium-review.googlesource.com/210882
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-08-04 15:37:27 +00:00
Jamie Madill cf3af0bdbc Fix non-square scalar-to-matrix constructors.
This fixes some broken tests in dEQP:
functional.shaders.conversions.scalar_to_matrix

BUG=angle:712

Change-Id: Ia01d720307ea6ca70da266b2085a878eaaab2412
Reviewed-on: https://chromium-review.googlesource.com/210881
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-08-04 15:37:18 +00:00
Geoff Lang e744834a17 Allow gyp to generate 64 bit project files for VS2012.
Visual Studio 2010 express was the last version to not support 64 bit
configurations.

BUG=angle:714

Change-Id: Ie4383a437a98cecfc82702e766a460ade96062f8
Reviewed-on: https://chromium-review.googlesource.com/210824
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-08-04 15:34:54 +00:00
Jamie Madill aff8084bbb Fix VertexBuffer11::getSpaceRequired for instanced attribs.
The computation could copy more data than needed. Although benign
it could cause performance degredation compared to the D3D9 back
end.

Change-Id: I3cf1dc79085c33d44040fd55153e63a4e5e63cb1
Reviewed-on: https://chromium-review.googlesource.com/210640
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-08-04 15:30:39 +00:00
Geoff Lang 5d601382b5 Simplify formatutils.h by exposing the info structures.
Removed all the separate query functions and simply expose the internal
info structures.  This reduces the number of std::map/std::set operations
that were hidden behind the API.

Moved the validation tables for ES3 format combinations and effective
internal formats into validationES3.cpp so that formatutils.h only has
generic GL format queries.

BUG=angle:658

Change-Id: Ieb60d42b8eafcdb4f21dcbec130b39478ce5f7c5
Reviewed-on: https://chromium-review.googlesource.com/206835
Reviewed-by: Nicolas Capens <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-08-04 15:30:25 +00:00
Jamie Madill 5c1e58d044 Add missing cache clears to D3D buffer classes.
BUG=angle:709

Change-Id: I93f92b916a0da26975cd459399cc2873cb4ab9f0
Reviewed-on: https://chromium-review.googlesource.com/210642
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-08-04 15:28:34 +00:00
Jamie Madill cfaaf72fbd Fix CopyBufferSubData.
We were passing the arguments from the gl::Buffer stub to the
implementation class, which was breaking the call.

Also clean up a few comments.

BUG=angle:709

Change-Id: Ib92a36d1c52d60d8929f567d0daf54e9d6a2d127
Reviewed-on: https://chromium-review.googlesource.com/210641
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-08-04 14:43:19 +00:00
Jamie Madill 7bf0c8670a Fix GN build for libEGL.
Our build in GN differed slightly from our gyp build, causing the
linker to complain about inconsistent linkage. Also remove some
stray definitions of EGLAPI from our headers.

Change-Id: I5d3a09ccb0cec528ead33944ce0996cceed32d86
Reviewed-on: https://chromium-review.googlesource.com/210821
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-08-01 14:14:47 +00:00
Jamie Madill 58c55c1373 Fix GN build for libGLESv2.dll.
In a previous fix to a Clang build error, we had neglected to update
the GN build. Broken in commit 07d49ef535.

BUG=angle:707

Change-Id: Ic11aa907d591540e915bec60f3bafaea471689d5
Reviewed-on: https://chromium-review.googlesource.com/210652
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Brett Wilson <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2014-07-31 21:57:54 +00:00
Jamie Madill e294bb8741 Add new shader inspection APIs.
Each new entry point corresponds to one of the variable types:
varyings, attributes, uniforms, output variables, and interface
blocks. They return a pointer to the vector with all of the
parsed variables, which then the app can copy to its own memory.

Currently we do not support the staticUse field in the HLSL
translator.

BUG=angle:466

Change-Id: I7dc09e761ab070feef5360ad27740110c44853b3
Reviewed-on: https://chromium-review.googlesource.com/208750
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-07-31 20:38:50 +00:00
Jamie Madill 13cfd276d3 Move shader variables header to include folder.
This allows the API to query for clear type introspection into the
parsed GL types from the translator. The returned types are not
expanded and have properly nested fields.

This patch uses the types from ShaderVars.h to return GL type
information. The app must include this header to get access to
the types structs.

BUG=angle:466

Change-Id: I28ad0d6f11a964804dd234ef0d00651f665d1ae3
Reviewed-on: https://chromium-review.googlesource.com/208751
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
2014-07-31 20:38:33 +00:00
Jamie Madill 6a72979fe0 Move shadervars constructors to cpp files.
This avoid unnecessary binary bloat from STL default constructors
and assignment operators.

BUG=angle:466,697

Change-Id: I679e524d3e3dbd0d3866fc30a5a01967d8769249
Reviewed-on: https://chromium-review.googlesource.com/208356
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: bratell at Opera <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
2014-07-31 20:38:21 +00:00
Jamie Madill a3fe2b4e1f Update non-default constructors in shadervars.h.
Most of these constructors are unused. Remove the unused ones,
and change the usage of existing constructors to be consistent.

BUG=angle:466,697

Change-Id: I455dd314036e1dfcb8c4690bab577b81dd0e060c
Reviewed-on: https://chromium-review.googlesource.com/208355
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-07-31 20:38:06 +00:00
Jamie Madill f8bdfebc5e Revert "Unifying the various texture interfaces where possible"
This reverts commit 8c9038d6f5.

Change-Id: I29c25121870e6f8d12144d235029f46fff90be7c
Reviewed-on: https://chromium-review.googlesource.com/210651
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-07-31 18:32:42 +00:00
Brandon Jones 8c9038d6f5 Unifying the various texture interfaces where possible
BUG=angle:688
Change-Id: I43be738e0a42f7a7e1448e1d9300b30d4bc54125
Reviewed-on: https://chromium-review.googlesource.com/209343
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Brandon Jones <[email protected]>
2014-07-31 16:37:35 +00:00
Jamie Madill 4fbd36ec50 Add a test for multisampled PBOs.
We don't allow ReadPixels from multisampled targets in GL.

Also update the assertions in Buffer11 to reflect our expectations.

BUG=angle:511

Change-Id: Ia3d5f796f5405fbae1187f3d45b0080d7f24b6d9
Reviewed-on: https://chromium-review.googlesource.com/210053
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Brandon Jones <[email protected]>
2014-07-29 20:11:59 +00:00
Geoff Lang 8e8bf55546 Remove the MajorShaderModel member from Context.
BUG=angle:658

Change-Id: Iab7906309f6603d5364d891bb332af8c3bf457fe
Reviewed-on: https://chromium-review.googlesource.com/206834
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-07-29 18:00:14 +00:00
Geoff Lang 5f4c46363b Use the FormatCaps for multisample validation and queries.
BUG=angle:658

Change-Id: Ic9fa53fb62d7eff62f07b68d7ddada461ecad859
Reviewed-on: https://chromium-review.googlesource.com/206832
Tested-by: Geoff Lang <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2014-07-29 17:58:46 +00:00
Nicolas Capens 8d62bcc4e2 Avoid D3D11 primitive restart index using 32-bit indices
D3D11 interprets an index value of 0xFFFF in a 16-bit index buffer as a
primitive restart marker. This behavior can't be toggled off.
http://msdn.microsoft.com/en-us/library/windows/desktop/bb205124(v=vs.85).aspx
We work around it by converting to 32-bit indices.

BUG=angle:708

Change-Id: Ibc92d6ba98e5f11a98d76cae14f90ca050a19964
Reviewed-on: https://chromium-review.googlesource.com/209883
Tested-by: Nicolas Capens <[email protected]>
Reviewed-by: Brandon Jones <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2014-07-28 14:58:17 +00:00
Jamie Madill 34b66f3255 Use D3D11 Renderer for ANGLE Tests.
Many of our tests rely on extensions and ES3 support. Until we
have the ability to switch between Renderers for specific tests,
the D3D11 Renderer should enable many failing tests to pass.

Also fix a double-delete crash in the test cleanup routine.

BUG=angle:702

Change-Id: I5e615ca1a35bd109d9f7bcbb5fa90b88e09157bd
Reviewed-on: https://chromium-review.googlesource.com/209102
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
2014-07-25 18:04:05 +00:00
Brandon Jones 6b19b002eb Removing D3D-isms from gl::Texture
BUG=angle:688
Change-Id: I0cdc758000993f2d54240c69a84f5ae149306d9e
Reviewed-on: https://chromium-review.googlesource.com/209332
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Brandon Jones <[email protected]>
2014-07-25 17:06:16 +00:00
Jamie Madill 07d49ef535 Fix Clang warning with preloaded D3DCompiler string.
Clang was complaining that we were casting a char* to a wchar_t*.

BUG=angle:707

Change-Id: I063165e9add4e9b57d131181da30c05e5abbc1c2
Reviewed-on: https://chromium-review.googlesource.com/209618
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-07-25 16:01:42 +00:00
Jamie Madill a09403c005 Fix masked ClearBuffer.
We were not properly setting the masked channels for these APIs.
Since we use a std::vector for tracking the render targets for
a particular ClearBuffer call, we lose the indexing into the
clear parameters. Fix this by storing the information in the
std::vector along with the Render Target.

BUG=angle:702

Change-Id: Ie3b1e870aa04054411c4f155682b86a340ec00cf
Reviewed-on: https://chromium-review.googlesource.com/209103
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-07-25 15:39:40 +00:00
Geoff Lang bfdea66b45 Remove try-catch blocks from entry points.
BUG=angle:700

Change-Id: I036901c397053a75677923304d7e1ed697c82aa2
Reviewed-on: https://chromium-review.googlesource.com/209570
Reviewed-by: <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-07-24 17:58:45 +00:00
Jamie Madill cafa2102cd Fix Clang warnings.
MSVC's more permissing validator missed a dependent typename, and
deleting a void pointer.

BUG=angle:703,704

Change-Id: I227b94c9c1590973d7b11b0ed0bfda32f2a71cec
Reviewed-on: https://chromium-review.googlesource.com/209613
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-07-24 17:58:40 +00:00
Geoff Lang 5063f55a82 Add a MemoryBuffer type to safely allocate large user data buffers.
MemoryBuffer has a similar interface to std::vector but returns a bool on
resize to do error checking.

BUG=angle:700

Change-Id: Ib201eeb91b07f5b7f970e153f5d1e110f9b2fa55
Reviewed-on: https://chromium-review.googlesource.com/209612
Reviewed-by: Nico Weber <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-07-24 17:57:48 +00:00
Brandon Jones 142ec4265c Refactored Texture2DArray, separated out D3D logic
BUG=angle:688
Change-Id: Ie3e5ac2bedcffb816ef1537575f09afb3f5e7a35
Reviewed-on: https://chromium-review.googlesource.com/208381
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Brandon Jones <[email protected]>
2014-07-24 17:34:35 +00:00
Brett Wilson 2f5469c2d6 Export include directories to dependents in GN.
Translator headers that are included by dependent code
(example: ShaderLang.h) expect to be able to include files from
"includes" (example: "KHR/khrplatform.h"). This automatically
applies this include path to dependent targets.

Change-Id: I6990f66132562f142a6cdf8b8c434d2dbaad1c98
Reviewed-on: https://chromium-review.googlesource.com/209452
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Brett Wilson <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-07-24 17:23:09 +00:00
Geoff Lang 493daf5a3b Update the format table to check support for filtering and rendering.
Since filerability and renderability may depend on separate extensions,
use functions to determine their support.  Context now uses these
functions to fill it's own TextureFormatCaps.

BUG=angle:658

Change-Id: Ib4dc877ba7c24f84a3823fd5aa2e01a3b3621705
Reviewed-on: https://chromium-review.googlesource.com/206831
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Brandon Jones <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-07-24 16:59:42 +00:00
Jamie Madill 4836d22aa9 Fix ASSERT when rewriting else-if blocks with no else.
The code assumed an else-if would end in an else. We can also save a
few allocations in the cases where there is no else.

BUG=angle:699

Change-Id: I550857366775b4a34aea97e117ef732297d3f448
Reviewed-on: https://chromium-review.googlesource.com/208681
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-07-24 14:18:58 +00:00
Jamie Madill 048c4fe74a Fix buffer tests.
The names of the tests were not properly capitalized, and the huge
buffer test could fail unexpectedly when it was run after several
prior tests which allocated large amounts of memory.

Change-Id: Ied5d1b6f56354e748f0df9d52658d14de9a559ac
Reviewed-on: https://chromium-review.googlesource.com/209611
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-07-23 21:24:50 +00:00
Jamie Madill e04a5b7bd6 Remove sh::InterfaceBlock member info.
We can compute the interface block member info entirely on the
API side. This will allow us to get rid of some un-necessary
code in the compiler.

BUG=angle:466

Change-Id: I664ffc82de5f2723156e51f4e9ffc07e4de162aa
Reviewed-on: https://chromium-review.googlesource.com/207781
Reviewed-by: Zhenyao Mo <[email protected]>
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-07-23 20:31:26 +00:00
Jamie Madill 28f70c3a28 Remove sh::Uniform::registerIndex and elementIndex.
With the previous cleanups, these fields aren't needed any longer.
We can also clean up some unused methods and simplify existing code.

BUG=angle:466

Change-Id: I96df8d152324bda5e6868b5eccdf52bdc09155e9
Reviewed-on: https://chromium-review.googlesource.com/207256
Reviewed-by: Zhenyao Mo <[email protected]>
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-07-23 20:31:20 +00:00
Jamie Madill bf9cce2e2b Use the block encoder class to store uniform offsets.
This will allow us to use the same code path for assigning register
information in all places. Because of this it fixes some long-broken
dEQP struct uniform tests.

BUG=angle:466
BUG=angle:505

Change-Id: I4161a388503aa09bbe2d21ff47bfb3352ec93881
Reviewed-on: https://chromium-review.googlesource.com/207255
Reviewed-by: Zhenyao Mo <[email protected]>
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-07-23 20:31:12 +00:00
Jamie Madill 9fe25e9eaa Add a uniform register query to the translator.
This returns the uniform index that we assigned for default uniforms.
All the dependent structure offsets can be determined from the base
register, so we won't have to store uniform information in the shader
variable.

BUG=angle:466

Change-Id: I0dd05251e8dba00c20d09fd865dfb150de56738e
Reviewed-on: https://chromium-review.googlesource.com/207254
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-07-23 20:31:01 +00:00
Brandon Jones 18fe4294af Added virtual destructors to VertexArrayImpl and BufferImpl
Change-Id: Ib9d8b2fc85b63f0cd52a2b19129a88ba7acbc017
Reviewed-on: https://chromium-review.googlesource.com/209380
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Nico Weber <[email protected]>
Tested-by: Nico Weber <[email protected]>
2014-07-22 21:27:54 +00:00
Geoff Lang 6cf8e1b906 Reduce the number of TextureFormatCaps members.
Since GL has no notion of texture formats that can be used for different
types of textures, merge the TextureFormatCaps texture support members.

Also merge the various renderability members since the texture type is
enough to determine what type of renderable a format is.

BUG=angle:658

Change-Id: I7cba50b147fcca8f3880d65c06c57df9c65ed19c
Reviewed-on: https://chromium-review.googlesource.com/206830
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-07-22 19:52:37 +00:00
Geoff Lang ad8636ee81 Fix missing EGL extension function exports.
BUG=angle:490

Change-Id: Ie4e7b0075f60676aa5f9fb51a0d6fb8f84b9ed90
Reviewed-on: https://chromium-review.googlesource.com/207140
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shannon Woods <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-07-22 19:43:36 +00:00
Geoff Lang f0955f1585 Update the samples and tests to use eglGetPlatformDisplayEXT.
BUG=angle:490

Change-Id: I5a685e42089377b5c600cd1f7ca8bd9a6654b3ba
Reviewed-on: https://chromium-review.googlesource.com/204939
Reviewed-by: Brandon Jones <[email protected]>
Reviewed-by: Shannon Woods <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-07-22 19:43:24 +00:00
Geoff Lang 591e6afe5a Add support for ANGLE_platform_angle.
BUG=angle:490

Change-Id: If3c897a9ae3d27b96e4b9bf9475a9ac23a1090ba
Reviewed-on: https://chromium-review.googlesource.com/185396
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-07-22 19:43:10 +00:00
Brandon Jones 78b1acdb11 Refactored Texture3D, separated out D3D logic
BUG=angle:688
Change-Id: I6cda73c2e4c8a026b8c5222bc40cea93ad4e0ba3
Reviewed-on: https://chromium-review.googlesource.com/208102
Tested-by: Brandon Jones <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2014-07-22 16:03:06 +00:00
Brandon Jones 0511e808f8 Refactored TextureCubeMap, separated out D3D logic
BUG=angle:688
Change-Id: I2300aaad4fab25df484e0bc3613ac3b176addc93
Reviewed-on: https://chromium-review.googlesource.com/208191
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Brandon Jones <[email protected]>
2014-07-21 18:48:50 +00:00
Jamie Madill 11c26b9c11 Refresh generated projects.
Change-Id: I46845edcd6e8334ca56b411ecb8677dfaebf8a07
Reviewed-on: https://chromium-review.googlesource.com/208861
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
2014-07-18 18:39:25 +00:00
Brett Wilson 04bac60c69 Explicitly list files for the build.
Removes shelling out to enumerate_files for the main targets (tests
and examples are currently unchanged) in favor of explicitly listing
out the files in the build.

There are a number of reasons. My immediate reason is that doing this
allows the file lists to be shared with the GN build so the GYP and GN
builds of angle should mostly automatically stay in sync now. In
addition, I don't think we should be enumerating files in GYP. No
other Chrome sub-projects do this, and Chrome engineers expect files
to be listed in .gyp* files. It's also slower to shell out a bunch of
times to get the file lists (this matters more in the GN build which
runs very quickly).

Updates the GN build to share these file lists. This unbreaks the
Windows GN Angle build.

BUG=angle:698

Change-Id: Iab8829628aeb7232bb64f4c247c35c6485bba3ee
Reviewed-on: https://chromium-review.googlesource.com/208461
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Brett Wilson <[email protected]>
Reviewed-by: Shannon Woods <[email protected]>
2014-07-17 21:21:50 +00:00
Zhenyao Mo e40d1e9c70 Fix style violations.
BUG=angle:650
TEST=no behavior change

Change-Id: I3096615a181b1ec2c18ce60566c3d6249975b84e
Reviewed-on: https://chromium-review.googlesource.com/208569
Tested-by: Zhenyao Mo <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2014-07-17 20:43:57 +00:00
Jamie Madill b759a74873 Fix test class names to reflect their class-ness.
Style guide dictates a camel case scheme for classes. Since the tests
are actually classes, update their names to reflect that.

Change-Id: Ib7422b6d8c5de8414765439704fc103eae8b2d63
Reviewed-on: https://chromium-review.googlesource.com/208680
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
2014-07-17 20:32:47 +00:00
Andrew Knight 75ec7c5bda Fix "error: extra qualification 'rx::ImageD3D::' on member 'makeImageD3D'"
As reported by GCC 4.8.1/MinGW.

Change-Id: If62d234074a0a9180f1f3c3619dbb2dd8047d0f3
Reviewed-on: https://chromium-review.googlesource.com/208670
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Brandon Jones <[email protected]>
Tested-by: Andrew Knight <[email protected]>
2014-07-17 17:38:47 +00:00
Jamie Madill 5b130dcc0f Do not create dummy variables when linking uniforms.
This cleanup prepares us for removing the uniform register info
from the shader translator types.

BUG=angle:466

Change-Id: I86f47970b793135f410a5ef698fc96d44219ee96
Reviewed-on: https://chromium-review.googlesource.com/207253
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
2014-07-16 21:54:59 +00:00
Jamie Madill 66d43d24c7 Refactor ProgramBinary uniform linking code.
This prepares us for moving most of the register assignment to the
ProgramBinary class itself, and cleans up the various methods.

BUG=angle:466

Change-Id: Ie2965ed41ac50617584fd7a6d7b0ec2784e7dfaf
Reviewed-on: https://chromium-review.googlesource.com/207252
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-07-16 21:54:49 +00:00
Zhenyao Mo cd68fe7989 Add a compiler option to rewrite vec/mat constructors
If one of the parameters is a vec/mat, expand it into scalars.

This is to work around Linux NVIDIA/AMD and Mac NVIDIA driver bugs.

BUG=angle:695
TEST=webgl conformance test

Change-Id: I35e1e25167d99f873dcb03bfb57a30e84b1aeed5
Reviewed-on: https://chromium-review.googlesource.com/207479
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Zhenyao Mo <[email protected]>
2014-07-16 19:51:00 +00:00