URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=76f95ba2721ec3214e39711a991b510bdb3c5a36 Author: Francisco Jerez <curroje...@riseup.net> Date: Fri Nov 22 19:59:48 2013 -0800
mesa: Handle binding of uniforms to image units with glUniform*(). v2: Set driver-specified flag in NewDriverState when glUniform* is used to bind an image unit. v3: Abbreviate argument type check. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=212122543b5eb69613853bf03f0c4fd5494c06a0 Author: Francisco Jerez <curroje...@riseup.net> Date: Sat Nov 23 21:56:56 2013 -0800 glsl/linker: Propagate image uniform access qualifiers to the driver. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c318a677dd20a5a9d891f0891363b4811aa7b04f Author: Francisco Jerez <curroje...@riseup.net> Date: Fri Nov 22 15:53:52 2013 -0800 glsl/linker: Assign image uniform indices. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e51158f2e77155bcfc6ba5f42d1cf9b9c9810930 Author: Francisco Jerez <curroje...@riseup.net> Date: Fri Nov 22 15:53:26 2013 -0800 glsl/linker: Count and check image resources. v2: Add comment about the reason why image variables take up space from the default uniform block. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e8dbe430aa77d6a775e087938bd19002f2a39e18 Author: Francisco Jerez <curroje...@riseup.net> Date: Mon Nov 25 20:29:57 2013 -0800 glsl: Add image built-in function generator. Because of the combinatorial explosion of different image built-ins with different image dimensionalities and base data types, enumerating all the 242 possibilities would be annoying and a waste of .text space. Instead use a special path in the built-in builder that loops over all the known image types. v2: Generate built-ins on GLSL version 4.20 too. Rename '_has_float_data_type' to '_supports_float_data_type'. Avoid duplicating enumeration of image built-ins in create_intrinsics() and create_builtins(). v3: Use a more orthodox approach for passing image built-in generator parameters. v4: Cosmetic changes. Acked-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=87acc7c650e765751eb787db7d23cc242670c68a Author: Francisco Jerez <curroje...@riseup.net> Date: Wed Feb 12 17:15:21 2014 +0100 glsl: Add built-in constants for ARB_shader_image_load_store. v2: Add them on GLSL version 4.20 too. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6057300ec68be3cbccdd3e6512aba833c63c2bb8 Author: Francisco Jerez <curroje...@riseup.net> Date: Wed Feb 12 17:12:24 2014 +0100 glcpp: Add built-in define for ARB_shader_image_load_store. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=60c89f8bff360dd79dea487eb197949381a72868 Author: Francisco Jerez <curroje...@riseup.net> Date: Mon Nov 25 14:09:13 2013 -0800 glsl: Add built-in types defined by ARB_shader_image_load_store. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7af167d2becc3ff7274350d8d29424ebf89aa6a9 Author: Francisco Jerez <curroje...@riseup.net> Date: Mon Nov 25 19:38:37 2013 -0800 glsl/ast: Generalize some sampler variable restrictions to all opaque types. No opaque types may be statically initialized in the shader, all opaque variables must be declared uniform or be part of an "in" function parameter declaration, no opaque types may be used as the return type of a function. v2: Add explicit check for opaque types in interface blocks. Check for opaque types in ir_dereference::is_lvalue(). Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2158749e522cb62d961d64d7b887cd730f915faa Author: Francisco Jerez <curroje...@riseup.net> Date: Fri Nov 22 15:17:05 2013 -0800 glsl/ast: Forbid declaration of image variables in structures and uniform blocks. Aggregating images inside uniform blocks is explicitly disallowed by the standard, aggregating them inside structures is not (as of GL 4.4), but there is a similar problem as with atomic counters: image uniform declarations require either a "writeonly" memory qualifier or an explicit format qualifier, which are explicitly forbidden in structure member declarations. In the resolution of Khronos bug #10903 the same wording applied to atomic counters was decided to mean that they're not allowed inside structures -- Rejecting image member declarations within structures seems the most reasonable option for now. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b28528d1c206a9b0c962a1e35ed177db7818cfa Author: Francisco Jerez <curroje...@riseup.net> Date: Sun Dec 8 04:56:06 2013 +0100 glsl/ast: Make sure that image argument qualifiers match the function prototype. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=81c167ef1c96df1aba1b294e0eeed631d7d3268c Author: Francisco Jerez <curroje...@riseup.net> Date: Fri Nov 22 15:11:50 2013 -0800 glsl/ast: Verify that function calls don't discard image format qualifiers. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=94a95e03d9e20e3af0b3fce5a7dab0b3d4162053 Author: Francisco Jerez <curroje...@riseup.net> Date: Mon Nov 25 15:57:56 2013 -0800 glsl/ast: Validate and apply memory qualifiers to image variables. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=910311c4a63fda5dc110847f237fefb17c4601f4 Author: Francisco Jerez <curroje...@riseup.net> Date: Mon Nov 25 15:14:25 2013 -0800 glsl/parser: Handle image built-in types. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f9cf61df3b1c477c145aa0dc3aa3d7d55ec172d8 Author: Francisco Jerez <curroje...@riseup.net> Date: Mon Nov 25 15:10:35 2013 -0800 glsl/parser: Handle image memory qualifiers. v2: Make the "map" array static const. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fcd869ed56db83cfdafe8af030518cd8cf7f5708 Author: Francisco Jerez <curroje...@riseup.net> Date: Wed Feb 12 17:10:09 2014 +0100 glsl/parser: Handle the early_fragment_tests input layout qualifier. v2: Only allow the early_fragment_tests qualifier in fragment shaders. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b0b26faa25110df16791f20e5560beb57a27894a Author: Francisco Jerez <curroje...@riseup.net> Date: Mon Nov 25 14:59:46 2013 -0800 glsl/lexer: Add new tokens for ARB_shader_image_load_store. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=299e869d25c88a3c2da4bd4a6d85ce24684136f0 Author: Francisco Jerez <curroje...@riseup.net> Date: Wed Feb 12 16:56:01 2014 +0100 glsl/ast: Keep track of type qualifiers defined by ARB_shader_image_load_store. v2: Add comment next to the read_only and write_only qualifier flags. Change temporary copies of the type qualifier mask to use uint64_t too. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c116541b2c3a45715de15e3180627263143ad426 Author: Francisco Jerez <curroje...@riseup.net> Date: Fri Nov 22 15:50:48 2013 -0800 glsl: Add gl_uniform_storage fields to keep track of image uniform indices. v2: Promote anonymous struct into named struct. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb13691d1c4df0c9258289b77867e5d5c890a838 Author: Francisco Jerez <curroje...@riseup.net> Date: Fri Nov 22 20:57:44 2013 -0800 glsl: Add image memory and layout qualifiers to ir_variable. v2: Add comment next to the read_only and write_only qualifier flags. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=107d03a6d5b63687361b2b4d2876ef52b082cbb5 Author: Francisco Jerez <curroje...@riseup.net> Date: Mon Nov 25 14:03:06 2013 -0800 glsl: Add helper methods to glsl_type for dealing with images. Add predicates to query if a GLSL type is or contains an image. Rename sampler_coordinate_components() to coordinate_components(). v2: Use assert instead of unreachable. v3: No need to use a separate code-path for images in coordinate_components() after merging image and sampler fields in the glsl_type structure. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a2508ee0726b349318c1e05122edbe5a545480a Author: Francisco Jerez <curroje...@riseup.net> Date: Mon Nov 25 13:50:47 2013 -0800 glsl: Add image type to the GLSL IR. v2: Reuse the glsl_sampler_dim enum for images. Reuse the glsl_type::sampler_* fields instead of creating new ones specific to image types. Reuse the same constructor as for samplers adding a new 'base_type' argument. Reviewed-by: Paul Berry <stereotype...@gmail.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9e611fc72dc80abd7bc1fec7863eb1fccb833930 Author: Francisco Jerez <curroje...@riseup.net> Date: Wed Feb 12 16:54:40 2014 +0100 glsl: Add ARB_shader_image_load_store extension enables. Reviewed-by: Paul Berry <stereotype...@gmail.com> _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit