src/libGLESv2/Texture.cpp


Log

Author Commit Date CI Message
daniel@transgaming.com 3c72078a 2012-10-31T18:42:34 Add renderer::SwapChain class and move functionality from egl::Surface Trac #21810 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1351 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 106e1f7b 2012-10-31T18:38:36 Removes D3D types from the Config class TRAC #21819 Signed-off-by: Daniel Koch Author: Shannon Woods git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1347 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 64e6290e 2012-10-31T18:27:46 Fix merge compilation errors git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1338 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com a734f27c 2012-10-31T18:07:48 Move SetTexture calls to the renderer class Trac #21727 git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1337 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com ebf139fe 2012-10-31T18:07:32 Move texture sampler state into a separate sampler state structure. Trac #21727 Conflicts: src/libGLESv2/Texture.cpp git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1335 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com f112217a 2012-10-31T18:07:20 Eliminate use of global getDevice() function. Trac #21727 Everything must go through the renderer. Conflicts: src/libGLESv2/Texture.cpp git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1334 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 621ce053 2012-10-31T17:52:29 Add Renderer class and move functionality from Display Trac #21727 Conflicts: src/libGLESv2/Texture.cpp src/libGLESv2/libGLESv2.vcxproj git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1329 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com ca9a3c87 2012-10-26T18:55:07 Avoids uploading levels other than 0 for incomplete textures. TRAC #21815 Fixes compressed texture test assertion in WebGL top-of-tree conformance suite when running with debug build Signed-off-by: Daniel Koch Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1323 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com a841b11d 2012-10-17T18:30:14 Only replace image surfaces with equal-sized managed surfaces. TRAC #21621 Issue=311 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1314 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 853b577f 2012-10-17T18:30:10 Fixed support for updating from managed surfaces. TRAC #21621 Issue=311 Signed-off-by: Daniel Koch Author: Nicolas Capens (Fixes XP path that was broken in r1308) git-svn-id: https://angleproject.googlecode.com/svn/trunk@1313 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 2e38b800 2012-10-17T18:30:06 Eliminated D3DXLoadSurfaceFromSurface from glGenerateMipmaps. TRAC #21621 Issue=311 Signed-off-by: Shannon Woods Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1312 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 8ea6942a 2012-10-17T18:30:03 Eliminated D3DXLoadSurfaceFromSurface from Image::copy. TRAC #21621 Issue=311 Signed-off-by: Shannon Woods Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1311 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com dabf0027 2012-10-17T18:29:59 Eliminated D3DXLoadSurfaceFromSurface from copyToRenderTarget. TRAC #21621 Issue=311 Signed-off-by: Shannon Woods Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1310 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 4bb04bef 2012-10-17T18:29:55 Eliminate D3DXLoadSurfaceFromSurface from setManagedSurface. TRAC #21621 Issue=311 Signed-off-by: Shannon Woods Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1309 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com e0adbd80 2012-10-17T18:29:52 Removed an unreachable path in texture loading code TRAC #21621 Issue=311 Signed-off-by: Shannon Woods Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1308 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 5127803f 2012-10-17T18:22:51 Don't promote packed RGB textures to RGBA d3d surfaces. TRAC #21591 Issue=362 Signed-off-by: Daniel Koch Author: Shannon Woods git-svn-id: https://angleproject.googlecode.com/svn/trunk@1305 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 6b1a0a0c 2012-10-17T18:22:47 Some cleanup after the previous sized internal format patches TRAC #21609 Signed-off-by: Daniel Koch Author: Shannon Woods git-svn-id: https://angleproject.googlecode.com/svn/trunk@1304 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 6452adf7 2012-10-17T18:22:35 Tracks sized internal formats for textures. TRAC #21609 Signed-off-by: Daniel Koch Author: Shannon Woods <shannon.woods@transgaming.com> git-svn-id: https://angleproject.googlecode.com/svn/trunk@1301 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 2b5af7b9 2012-09-27T17:46:15 Optimized adding dirty rectangles. TRAC #21588 Issue=353 Signed-off-by: Shannon Woods Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1288 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 1ee986b8 2012-09-27T17:46:12 Make sure the driver knows the texture is dirty when only lower level mipmaps are updated. TRAC #21588 Issue=353 Signed-off-by: Shannon Woods Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1287 736b8ea6-26fd-11df-bfd4-992fa37f6226
sminns@adobe.com ce1189b0 2012-09-18T20:06:35 Fix bug 368: Specify the Levels parameter of CreateCubeTexture and CreateTexture correctly. This fixes ATS test cases 38840,38841 (while making sure that 44095, 44096, 44097, 44100, 44101, 44102 still work) The Direct3D spec for the 'Levels' parameter of IDirect3DDevice9::CreateCubeTexture (and IDirect3DDevice9::CreateTexture) says: "If this is zero, Direct3D will generate all cube texture sublevels down to 1x1 pixels for each face for hardware that supports mipmapped cube textures." The 'levels' parameter can be 0 (which means "generate all texture sublevels") or a non-zero value for the actual number of levels to create (often 1 if mapmapping is disabled). But 1x1 and 2x2 mipmapped textures are not supported, so textures with these dimensions will actually create a 4x4 texture, and set mLodOffset to 2 or 1 respectively so that the level index can be offset as appropriate. There is only one special case (for textures with dimensions smaller than 4): when levels=1 and the texture is 2x2, it is unnecessary to create all miplevels, since the 1x1 texture will never be used. For all other cases, all miplevels must be generated even though the upper ones will be unused in order to generate the lower ones. If 'levels' is zero all miplevels must always be generated. It's important to preserve the special case, to ensure that attempting to access the non-existant level produces the correct error. So if 'levels' is zero, the 'Levels' parameter should always be zero, otherwise it's the sum of 'levels + mLodOffset' Also, the calls to 'creationLevels' from the TextureCubeMap methods were not quite right. Passing a zero for the second parameter causes this API to always fail, since '0' is not a power of two. There is already a version of 'creationLevels' that takes just one parameter and works correctly, so just deleting the extra parameter fixes this problem. BUG=https://code.google.com/p/angleproject/issues/detail?id=368 TEST=Run test cases 38840, 38841, 44095, 44096, 44097, 44100, 44101, 44102 in http://ats.macromedia.com/Players/ATS/ATS10AS3/Staging/ATS.html?dynamicXML=false&wmode=direct&section=Manual&xmlSetURL=http://fpqa.macromedia.com/crospepperbuild/XMLSets/ATS10AS3ManualPepper.xml Review URL: https://codereview.appspot.com/6492098 git-svn-id: https://angleproject.googlecode.com/svn/trunk@1279 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com e6a09846 2012-09-17T21:28:55 Returns early from createTexture if its width or height are zero. TRAC #21594 Bug=350 Signed-off-by: Nicolas Capens Signed-off-by: Daniel Koch git-svn-id: https://angleproject.googlecode.com/svn/trunk@1278 736b8ea6-26fd-11df-bfd4-992fa37f6226
jbauman@chromium.org 6bc4a146 2012-09-06T21:28:30 Ensure texture level count accounts for lod offset. The lower texture levels (below the lod offset) aren't used and can't be seen, so don't count them in levelCount. BUG= Review URL: https://codereview.appspot.com/6492084 git-svn-id: https://angleproject.googlecode.com/svn/trunk@1275 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com ca8c1693 2012-08-27T16:25:43 Moved SSE2 code to separated file to allow using different compiler flags on GCC To use SSE2 in GCC, a compiler -msse2 flag is needed. It adds both possibility to write SSE2 code in the file, but also allows compiles to optimize the whole file with SSE2. To make sure that the code works on non-SSE2 machines, moving SSE2 functions to separated file and compiling only that file with -msse2 is the common practice. Issue=358 Signed-off-by: Daniel Koch git-svn-id: https://angleproject.googlecode.com/svn/trunk@1262 736b8ea6-26fd-11df-bfd4-992fa37f6226
jbauman@chromium.org 68715287 2012-07-12T23:28:41 Scale up non-multiple-of-4 dxt textures D3D doesn't support DXT textures that aren't a multiple of 4 in size, so multiply the sizes by 2 or 4 so they work. Then ensure sampler parameters are set up correctly so they don't sample the unuploaded miplevels. BUG=https://code.google.com/p/angleproject/issues/detail?id=237 TEST= Review URL: https://codereview.appspot.com/6287045 git-svn-id: https://angleproject.googlecode.com/svn/trunk@1222 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 07ab841a 2012-07-12T15:17:09 Implement Anisotropic Texture filtering support Bug=297 Authored-by: Conor Dickinson, Cloud Party, Inc. Signed-off-by: Daniel Koch git-svn-id: https://angleproject.googlecode.com/svn/trunk@1219 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 95a758f3 2012-07-12T15:17:06 Remove dos-style line-endings (EOL changes only) git-svn-id: https://angleproject.googlecode.com/svn/trunk@1218 736b8ea6-26fd-11df-bfd4-992fa37f6226
apatrick@chromium.org 9616e583 2012-06-22T18:27:01 Merge no-flip-rows r1142 to trunk. Review URL: https://codereview.appspot.com/6304052 git-svn-id: https://angleproject.googlecode.com/svn/trunk@1162 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 68145c6f 2012-05-31T01:14:46 Apply the depth texture correctly as the DepthStencil surface in applyRenderTarget Trac #20875 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1115 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 63e6afe9 2012-05-31T01:14:42 Ensure all getDepthStencil and getRenderTarget calls consistently handle references to the underlying d3d surfaces Trac #20875 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1114 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 08bfcc47 2012-05-31T01:14:29 Add TextureStorage support for INTZ depth textures and ensure Images never create INTZ surfaces Trac #20875 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1110 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 7aeab46f 2012-05-31T01:14:26 Factor renderability check into GetTextureUsage Trac #20875 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1109 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com e32d5699 2012-05-31T01:14:22 Pass the usage parameter into TextureStorage instead of passing a boolean Trac #20875 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1108 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 36884639 2012-05-31T01:14:18 Refactor texture usage logic to helper function Trac #20875 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1107 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 0c854684 2012-05-31T01:14:11 Report errors for unsupported Depth/stencil texture operations Trac #20875 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1105 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 355989bc 2012-05-09T15:49:29 Remove duplicate error checks from Texture subImage and subImageCompressed. Issue=306 Signed-of-by: Nicolas Capens These errors are validated by validateSubImageParams* now, no need to do it twice. git-svn-id: https://angleproject.googlecode.com/svn/trunk@1083 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 4df88e8a 2012-05-09T15:49:24 Make TextureCubeMap size/format/compressed checks explicit about the level and face they are checking Issue=306 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1082 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 92f49929 2012-05-09T15:49:19 Make Texture2D format and compression checks be explicit about the level they are checking Issue=306 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1081 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 46f2d0a9 2012-05-09T15:49:06 Split RenderbufferTexture into 2D and CubeMap specific variants Issue=306 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1078 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com bf6e5d4d 2012-05-09T15:49:03 Remove the unused Texture::getType method Issue=306 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1077 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 28eb3921 2012-05-09T15:48:57 Move the internal format check for compressed subImage commands to the API layer Issue=306 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1075 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 2d669fce 2012-05-09T15:42:48 Texture: Avoid attempting to create 0 sized D3D textures Issue=301 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1074 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 519c32ba 2012-05-01T15:24:05 Implement SSE2 version of loadAlphaData http://codereview.appspot.com/6050054/ Signed-off-by: Nicolas Capens Signed-off-by: Daniel Koch Authored-by: Jin Yang With this patch, my HTML5 2D canvas benchmark with Chromium on Windows7 with GPU acceleration can boost about 4% though the most execution time is in GPU. git-svn-id: https://angleproject.googlecode.com/svn/trunk@1067 736b8ea6-26fd-11df-bfd4-992fa37f6226
bsalomon@google.com fc74c375 2012-04-11T17:53:24 Guard against null surface in Image::updateSurface. Review URL: https://codereview.appspot.com/5985051 git-svn-id: https://angleproject.googlecode.com/svn/trunk@1026 736b8ea6-26fd-11df-bfd4-992fa37f6226
apatrick@chromium.org 3b130253 2012-04-03T18:20:18 Make Image::lock and unlock private and call them from Image::loadData. This is because I want loadData to be able to decide whether to use LockRect/UnlockRect or UpdateSurface as the method to load the data, depending on whether the Images are backed by textures in the default pool or not. I think it actually cleans up the code a bit. Also, fixed a bug in subImageCompressed. The associated WebGL conformance test now passes. Review URL: https://codereview.appspot.com/5948043 git-svn-id: https://angleproject.googlecode.com/svn/trunk@1013 736b8ea6-26fd-11df-bfd4-992fa37f6226
apatrick@chromium.org a1d8059d 2012-01-25T21:52:10 Increase MSVC warning level to 4. There are some exceptions, a subset of the exceptions used by Chromium. They didn't seem to be useful warnings. In code which we don't change much, like the preprocessor, I just suppressed the warnings in the specific files rather than changing the code. There should be no functional changes in this patch. Review URL: https://codereview.appspot.com/5570066 git-svn-id: https://angleproject.googlecode.com/svn/trunk@964 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 2678b34b 2012-01-18T16:29:40 Changes the pointer from textures to their renderbuffer proxies to non-refcounted (2/2) TRAC #19335 Issue=271 Instead, the texture maintains an internal refcount which causes the pointer to behave kind of like a "weak" shared pointer-- its reference won't prevent the renderbuffer from being deleted, but if the renderbuffer's refcount drops to zero, the texture should set its pointer to the renderbuffer to null so that a new one can be created at the next getRenderbuffer call. Signed-off-by: Nicolas Capens Signed-off-by: Daniel Koch git-svn-id: https://angleproject.googlecode.com/svn/trunk@948 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com c8d46066 2011-12-22T19:39:14 Ensure texture storage exists before retrieving serial Trac #19330 Signed-off-by: Nicolas Capens In some cases we were trying to retrieve a serial from a rendertarget texture which didn't have the storage allocated yet. This was resulting in a 0 serial which was indistinguishable from the case where context was just marked dirty and we assumed the target was up-to-date. This resulted in failing to apply the correct rendertarget and as a result some d3d clear calls were failing (picked up by debug runtime). git-svn-id: https://angleproject.googlecode.com/svn/trunk@929 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 4d6c6d75 2011-12-22T19:36:50 Only allow renderable d3dformats to be flagged as rendertarget texstorage Trac #19356 Issue=273 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@928 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 2e566dc3 2011-12-22T19:36:47 rename TextureStorage renderable flag to reflect it's actual usage Trac #19356 Issue=273 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@927 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com b9aa00b2 2011-12-22T19:36:42 Refactor image renderability lookup Trac #19356 Issue=273 Signed-off-by: Nicolas Capens Based on preliminary patch from Ken Russell Images are never renderable directly, so renaming the Image::isRenderable function clarifies that we are only checking on the renderability of the format. Also factor out the lookup to a static helper function (it will be used elsewhere in the next patch) git-svn-id: https://angleproject.googlecode.com/svn/trunk@926 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com ad0ca1c4 2011-12-16T23:28:52 make the renerable usage consistant and const Trac #19259 Issue=268 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@922 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 92399aa2 2011-12-16T23:28:47 Add TextureStorage::getPool method Trac #19259 Issue=268 Use it to avoid duplicate calls to getTexturePool Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@921 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 101f8697 2011-12-16T23:28:43 Let TextureStorage track the texture pool explicitly Trac #19259 Issue=268 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@920 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com f5cffc91 2011-12-16T23:28:39 Rename various mTexture variables to mTexStorage to reflect what they really are Trac #19259 Issue=268 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@919 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 63928d78 2011-12-16T23:28:34 Cache the computation of getD3DFormat Trac #19259 Issue=268 Instead of looking this up every time, we'll just compute it when the type/format changes. Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@918 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 1dda3b18 2011-12-16T23:28:31 Move ConvertTextureFormatType Trac #19259 Issue=268 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@917 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 38f28cba 2011-12-16T23:28:26 Track the texture pool explicitly in the Image class Trac #19259 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@916 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 1d116b42 2011-12-16T23:28:22 Fix managed texturestorage textures Trac #19259 Issue=268 managed textures need to be set on the images so they can be updated properly and to avoid the additional system memory copy of the surfaces. Also make sure track the managed state properly. Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@915 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com f71a339a 2011-12-16T23:28:18 Use the correct d3dformat for texstorage textures. Trac #19259 Issue=268 The image we were trying to get the d3dformat from hadn't been initialized yet. Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@914 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 8d6252eb 2011-12-16T23:28:14 Add a static helper function to convert a GL format/type to d3dformat and call this from Image::getD3DFormat Trac #19259 Issue=268 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@913 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 5f7dc33d 2011-12-13T22:48:00 Use the correct function to determine texture pool Trac #19259 Issue=269 git-svn-id: https://angleproject.googlecode.com/svn/trunk@912 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 7f4dee14 2011-12-07T21:14:00 Guard against releasing NULL textures. ANGLEBUG=265 TRAC #19196 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@905 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com f1286449 2011-11-29T19:42:23 Adds a level parameter to texture getWidth and getHeight TRAC #18802 Signed-off-by: Nicolas Capens Signed-off-by: Daniel Koch Author: Shannon Woods git-svn-id: https://angleproject.googlecode.com/svn/trunk@899 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 1e44645a 2011-11-16T03:56:50 Immutable textures are always mipmap complete. TRAC #18730 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@883 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 6364b350 2011-11-16T03:56:44 Split completeness tests into sampler and mipmap completeness. TRAC #18730 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@882 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com d28da894 2011-11-12T04:23:53 Use the texture surfaces as image surfaces when managed. TRAC #14743 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@875 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 59580a3d 2011-11-12T04:23:44 Used the MANAGED pool for non-renderable textures on XP. TRAC #14743 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@874 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com ef4cb8b3 2011-11-11T04:18:27 Create a render target texture when intended as framebuffer attachment. TRAC #18732 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@861 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 7d18c17f 2011-11-11T04:18:21 Added the texture usage parameter. TRAC #18732 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@860 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 64a0fb2a 2011-11-11T04:10:40 Implemented glTexStorage2DEXT. TRAC #18730 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@857 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com d30bd0a7 2011-11-11T04:10:34 Added the immutable parameter. TRAC #18730 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@856 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com fbc39524 2011-11-11T04:10:28 Issue render target serials per texture storage. TRAC #18730 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@855 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 9f8f6229 2011-11-11T04:10:23 Move serial management to TextureStorage. TRAC #18730 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@854 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 5e4dbb30 2011-11-11T04:10:18 Create D3D textures within Storage classes. Fixed render target reference counting. TRAC #18730 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@853 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com afa8ef36 2011-11-11T04:10:13 Simplified cube face handling and render target conversion. TRAC #18730 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@852 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com dc82bf91 2011-11-11T04:10:08 Encapsulate D3D textures into Storage classes. TRAC #18730 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@851 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com f81103a6 2011-11-09T17:46:28 maxLevels is always 0. TRAC #18714 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@842 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 4163405e 2011-11-09T17:46:24 Release the D3D texture on any actual redefine. TRAC #18714 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@841 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com d14558a2 2011-11-09T17:46:18 Separate Colorbuffer into storage and texture variants, implementing a common interface. TRAC #16284 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@840 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com bbeffbb6 2011-11-09T17:46:11 Be more explicit about floating-point format support. TRAC #16284 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@839 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com c1fde76c 2011-11-09T17:46:07 Issue a new serial for every new D3D texture. TRAC #16284 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@838 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 1a01e830 2011-11-09T17:45:57 Always release pbuffer surfaces on redefine. TRAC #18714 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@836 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 9d4eac7a 2011-11-09T17:45:53 mIsRenderable is only valid when there is a texture. TRAC #18714 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@835 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 90cfcc95 2011-11-09T17:45:48 Move copyToImage to Image::copy. TRAC #18714 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@834 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 839fb9b0 2011-11-09T17:45:43 New image surfaces are not dirty (nothing to copy over). Lock marks images as dirty. TRAC #18714 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@833 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 0c67f3cd 2011-11-09T17:45:38 Eliminated the format parameter. TRAC #18714 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@832 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com f749f0e8 2011-11-09T17:45:34 Moved load*Data methods to Image. TRAC #18714 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@831 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 6e4b1219 2011-11-09T17:45:28 Eliminated GetDesc calls. TRAC #18714 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@830 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 73de05a5 2011-11-09T17:45:24 Encapsulate image surface creation. TRAC #18714 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@829 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 4c0a7715 2011-11-09T17:45:19 Defer image surface creation. TRAC #18714 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@828 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 5cce3ff0 2011-11-09T17:45:14 Abstracted image locking/unlocking. TRAC #18714 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@827 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com dff362f5 2011-11-09T17:45:08 Turned Image into a class to improve encapsulation. TRAC #18714 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@826 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com de631783 2011-11-09T17:45:04 Moved Image outside of Texture. TRAC #18714 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@825 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 0da803be 2011-11-09T17:44:58 Refactored texture dirtiness. TRAC #18714 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@824 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 01dae855 2011-11-09T17:44:53 Don't redefine at copySubImage. TRAC #18714 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@823 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 68ae299a 2011-11-09T17:44:49 Refactored redefine. TRAC #18714 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@822 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 31e22e1d 2011-11-09T17:44:44 Moved createSurface() to Image. TRAC #18714 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@821 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 9ab8e3e0 2011-11-09T17:44:39 Clear the dirty flag on copied images. TRAC #18495 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@820 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com c9ba4ad2 2011-11-09T17:44:35 Only destroy the redefined image level. TRAC #18495 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@819 736b8ea6-26fd-11df-bfd4-992fa37f6226