Commit Graph

  • b3cf3719ea Fix for map/unmap to capture properly while idle baldurk 2014-12-04 14:59:46 +00:00
  • 315f190c49 Calculate the right size (including padding) for D32S8 baldurk 2014-12-04 14:47:47 +00:00
  • 00c9515fbd Mark SSBOs and atomic counter buffers as dirty when bound baldurk 2014-12-04 14:36:02 +00:00
  • 99c6719928 Make sure unmap chunk isn't lost and goes in buffer record baldurk 2014-12-04 14:35:31 +00:00
  • d90f8f0d41 Provide index to SV_VertexID when using index buffer. Refs #113 baldurk 2014-12-04 14:10:16 +00:00
  • 3c05059529 Track our minimal shadow state on a per-context basis baldurk 2014-12-03 23:40:03 +00:00
  • efac062cdd Make sure to apply initial contents before first replay of frame baldurk 2014-12-03 23:24:40 +00:00
  • 670c0ef7e7 Handle BGRA vertex attributes baldurk 2014-12-03 23:22:24 +00:00
  • 13c613d757 Handle binding 0 imagetexture baldurk 2014-12-03 23:13:38 +00:00
  • 850410b1a3 Vertex buffer functions also need to bind the VAO when reading baldurk 2014-12-03 21:21:57 +00:00
  • a4e6f0f1d1 Only explicitly bind vertex array object when reading, not executing baldurk 2014-12-03 21:20:26 +00:00
  • a5e019d143 Fix glBufferData re-creating, preserve chunk ordering baldurk 2014-12-03 20:23:49 +00:00
  • 2a43d0d4bf glCopyBufferSubData should contribute to record update count baldurk 2014-12-03 20:19:14 +00:00
  • 4bd1f940d6 only use CUBE_POSITIVE_X as a query target for CUBE_MAP baldurk 2014-12-03 20:18:33 +00:00
  • c7576d8a7f Add resource record parent for VAO when binding buffer baldurk 2014-12-03 18:16:50 +00:00
  • d30ce5d6b2 Fixes for replay, and populating hooks (call through hooked func) baldurk 2014-12-03 18:16:06 +00:00
  • cb7dd8fa6d Check that functions are available before doing anything baldurk 2014-12-03 16:52:54 +00:00
  • 185df924dc Use proper wglGetProcAddress hook baldurk 2014-12-03 16:52:37 +00:00
  • 2f48158a89 Add some extensions that we already support, and ARB func aliases baldurk 2014-12-03 16:03:19 +00:00
  • 907361c4bb Add glBindMultiTextureEXT - still need to add rest of EXT_dsa funcs baldurk 2014-12-03 16:02:40 +00:00
  • 431eef4e6d 64-bit compile fixes baldurk 2014-12-03 14:10:57 +00:00
  • 46a29c7d14 As a slight concession, create a 'fake' VAO to use when 0 is bound baldurk 2014-12-03 14:00:23 +00:00
  • 8397aa1f28 Handle glBufferData being used to rename/orphan to a new size baldurk 2014-12-03 13:57:03 +00:00
  • 34b39d79d2 Respect program settings for depth/stencil tests baldurk 2014-12-03 13:15:48 +00:00
  • 3cac0c339d Only set readbuffer to GL_BACK after default FBO is bound baldurk 2014-12-03 13:08:19 +00:00
  • e8006dde6c Only end unfinished queries etc if we're replaying from scratch baldurk 2014-12-03 13:08:01 +00:00
  • 03f631bc82 Actually serialise SRGB decode value (!) baldurk 2014-12-03 13:07:46 +00:00
  • 192ff9c007 Texbuffer display for GL baldurk 2014-12-03 12:31:00 +00:00
  • a05a8d457e Consider buffers that are bound to xfm feedback to be dirty baldurk 2014-12-03 11:53:11 +00:00
  • 2a3fde6e51 Special case GL_POINTS as it's enum value 0 (shows as GL_NONE) baldurk 2014-12-03 11:45:45 +00:00
  • 08174ef277 Serialise transform feedback buffer bindings into feedback record baldurk 2014-12-03 11:45:16 +00:00
  • 1061948185 Implement AllowFullscreen (or rather, !AllowFullscreen) for win32 GL baldurk 2014-12-03 10:41:37 +00:00
  • 61909e56c9 Handle shader being deleted before detach (just drop the detach) baldurk 2014-12-03 10:29:31 +00:00
  • c0c436f6ed Make sure to set all sources at once (glShaderSource replaces). baldurk 2014-12-03 10:23:31 +00:00
  • 6039958ba1 Check for validity of params before trying to serialise baldurk 2014-12-03 09:23:30 +00:00
  • d7485ad466 Correctly replay glUseProgram(0) baldurk 2014-12-03 09:23:19 +00:00
  • e52981ad47 Display of MSAA textures in GL baldurk 2014-12-02 23:28:12 +00:00
  • 4aab1172a4 Save out multisample count on default framebuffer baldurk 2014-12-02 23:27:03 +00:00
  • 46c70e6f69 UTF-8 bugfix (leave room for null terminator) baldurk 2014-12-02 22:39:45 +00:00
  • 72b8725c69 Serialise element buffer bindings into VAO record baldurk 2014-12-02 22:39:33 +00:00
  • e868280f3c Handle missing internal format case baldurk 2014-12-02 19:06:10 +00:00
  • 2017cdfc35 glBindBuffer sets the 'general' bindpoint buffer regardless of index baldurk 2014-12-02 19:02:53 +00:00
  • a9861f36bd Add list of extensions used in g_truc 430 and 440, just for now baldurk 2014-12-02 01:32:10 +00:00
  • 4b9854aa5e Add missing chunk handler baldurk 2014-12-02 01:32:00 +00:00
  • 973bfaaad0 Don't mark framebuffer itself as dirty baldurk 2014-12-02 01:31:55 +00:00
  • 314e9ee4db Handle NULL array of textures in glBindTextures baldurk 2014-12-02 01:31:45 +00:00
  • 9369c85953 Mute the spam about supported extension functions not being returned baldurk 2014-12-02 01:31:35 +00:00
  • ed7b394a57 Handle other object label types, and negative message lengths baldurk 2014-12-02 00:50:32 +00:00
  • 6e213a71a7 More cheeky extensions. baldurk 2014-12-02 00:48:55 +00:00
  • 552581bdaa Fix wrong chunk enum being used baldurk 2014-12-02 00:37:54 +00:00
  • 46c06893e2 Another cheeky extension baldurk 2014-12-02 00:37:44 +00:00
  • 90e33ab95f Handle GL_EXT_texture_sRGB_decode. See gl-420-fbo-srgb-decode-ext baldurk 2014-12-02 00:25:49 +00:00
  • c1287fe853 Include SAMPLER_CUBE_MAP_ARRAY in switch (as any other sampler type) baldurk 2014-12-02 00:14:16 +00:00
  • 69562fb82d Handle invalid index type reasonably gracefully baldurk 2014-12-02 00:13:59 +00:00
  • 77db507027 Get chunk names the right way around baldurk 2014-12-02 00:13:41 +00:00
  • b2d3b94bdc Cheeky add a couple of supported extensions that g_truc looks for baldurk 2014-12-02 00:16:23 +00:00
  • 52476118de Support doubles in shader vars natively, not packed in 2*uint32 each baldurk 2014-12-02 00:16:12 +00:00
  • 2cdb6c6ccf Convert internal format to sized early, for making copies baldurk 2014-12-01 23:38:00 +00:00
  • d26b01ae26 Add support for texture rects & renderbuffers to histogram/minmax baldurk 2014-12-01 23:06:35 +00:00
  • c51fade47a Add support for texture rectangles. See gl-330-texture-rect baldurk 2014-12-01 22:55:35 +00:00
  • b0e36c551e Don't want to sample mipmaps even when linaer sampling baldurk 2014-12-01 22:54:52 +00:00
  • 4b019b059f Handle missing format. See gl-330-texture-integer-rgb10a2ui baldurk 2014-12-01 22:25:35 +00:00
  • c37884bdd8 Handle arrays of sampler variables. See gl-330-sampler-object baldurk 2014-12-01 22:23:49 +00:00
  • 116b1b1325 Serialise out scissor test enabled bit baldurk 2014-12-01 22:17:14 +00:00
  • 78257a1fd9 Track if transform feedback is active, and ensure we deactivate baldurk 2014-12-01 22:08:58 +00:00
  • 22c42d4e36 If we're going to linear sample, make sure tex is mipmap complete baldurk 2014-12-01 22:08:41 +00:00
  • 15e9b58317 Linux fixes for switch to UTF-8 strings. baldurk 2014-12-01 21:40:43 +00:00
  • 976e89787b Avoid using glGetTextureImageEXT as it might be buggy for cubemaps baldurk 2014-12-01 20:57:39 +00:00
  • 6557d50f29 Don't fetch TEXTURE_VIEW_MIN_LEVEL for texture buffers baldurk 2014-12-01 20:57:26 +00:00
  • 00e8b67950 Fix typo using non-serialised parameter baldurk 2014-12-01 20:57:17 +00:00
  • ad4afaf4a0 Actually break out of loop on invalid data. Oops. baldurk 2014-12-01 18:36:50 +00:00
  • ffdcf5444e Don't print random data as a string baldurk 2014-12-01 18:36:40 +00:00
  • bf5320edae Make sure queries/conditional rendering are closed properly. baldurk 2014-12-01 18:32:01 +00:00
  • 3dfa8f17ab Fix serialising program array uniforms. baldurk 2014-12-01 18:13:28 +00:00
  • 04c2bba23f Don't use mipmapping for point sampler baldurk 2014-12-01 17:50:00 +00:00
  • 50d6b62adf Proper SRGB handling in opengl. See gl-320-fbo-srgb baldurk 2014-12-01 17:13:30 +00:00
  • 962ac749bc Fix mip display baldurk 2014-12-01 16:07:04 +00:00
  • c370c164ae Force texture completion for copy. See gl-320-fbo-multisample-explicit baldurk 2014-12-01 15:47:27 +00:00
  • ba2fe1ccc3 Don't use sampler state for MS texs. See gl-320-fbo-depth-multisample baldurk 2014-12-01 14:38:37 +00:00
  • 7add9a63dd Better handling for renderbuffer FBO attachments. See gl-320-fbo-blit baldurk 2014-12-01 14:29:43 +00:00
  • 829647a924 Interpret index offset in GL drawcalls as byte offset baldurk 2014-12-01 13:15:02 +00:00
  • 49b2b2d2df Handle empty indices array without crashing baldurk 2014-12-01 13:14:43 +00:00
  • 332cf73591 Handle GL_FLUSH_EXPLICIT buffer maps. See g-truc gl-320-buffer-update baldurk 2014-12-01 12:40:41 +00:00
  • b6ba100ed1 Add a couple more buffer creation flags baldurk 2014-12-01 12:37:32 +00:00
  • 1bbed3b880 For glVertexAttrib*Pointer, serialise GL_ARRAY_BUFFER baldurk 2014-12-01 11:10:28 +00:00
  • 414473b56a Handle integer and normalized vertex attributes properly baldurk 2014-12-01 11:01:44 +00:00
  • 7b8ad8daf9 Handle when offset is beyond buffer size or length ends up 0 baldurk 2014-12-01 10:38:06 +00:00
  • 6498424eed Check pipeline is valid. See g-truc gl-320-caps baldurk 2014-11-30 23:07:36 +00:00
  • 5ae4b0d649 Make sure glGetBufferSubData call doesn't overrun buffer size baldurk 2014-11-30 20:16:33 +00:00
  • 3fa9dcdf47 Properly initialise parent variable structure baldurk 2014-11-30 17:13:55 +00:00
  • 7243881de5 Ensure parent refs are deleted before force-deleting resource records baldurk 2014-11-30 16:23:11 +00:00
  • 9748813eb1 Use serialised program initial states to translate uniform locations baldurk 2014-11-30 16:05:01 +00:00
  • c4f73c2b58 Handle deleting logfile at program shutdown in core destructor baldurk 2014-11-30 15:45:19 +00:00
  • e8f5e78811 Check extensions by enum and centralised checking for 'hacks' baldurk 2014-11-30 15:31:31 +00:00
  • 4cbb4c888a Favour DSA texture queries, avoid binding, use GetNumMips baldurk 2014-11-30 14:48:08 +00:00
  • 5e6e243c67 Add function to get true number of mips in GL texture baldurk 2014-11-30 14:46:22 +00:00
  • fabc319b0b Mute all DEBUG_TYPE_OTHER messages from logspamming baldurk 2014-11-29 01:58:20 +00:00
  • 4d1d816e80 Add function to identify compressed texture formats baldurk 2014-11-29 01:58:11 +00:00
  • 71ef286e51 Element array buffer binding is part of VAO state baldurk 2014-11-29 01:58:00 +00:00
  • 87f9a15a3e Number of mips should be clamped to MAX_LEVEL+1 baldurk 2014-11-29 01:31:22 +00:00