Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | st/glsl_to_nir: move nir_lower_io to drivers | Nicolai Hähnle | 2017-07-31 | 3 | -2/+10 |
| | | | | | | | This allows drivers more freedom in how exactly they want to lower I/O, e.g. first lowering I/O to temporaries. Reviewed-by: Marek Olšák <[email protected]> | ||||
* | st/mesa: get rid of st_glsl_types | Nicolai Hähnle | 2017-07-31 | 10 | -173/+42 |
| | | | | | | | It's a duplicate of glsl_type::count_attribute_slots. Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Marek Olšák <[email protected]> | ||||
* | st/glsl_to_nir: use nir_lower_samplers_as_deref when requested by the driver | Nicolai Hähnle | 2017-07-31 | 1 | -1/+6 |
| | | | | Reviewed-by: Marek Olšák <[email protected]> | ||||
* | st/glsl_to_nir: fix the case where NIR clone testing is enabled | Nicolai Hähnle | 2017-07-31 | 1 | -1/+2 |
| | | | | | | | In that case, prog->nir must be assigned at the end. Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Marek Olšák <[email protected]> | ||||
* | gallium: add PIPE_CAP_NIR_SAMPLERS_AS_DEREF | Nicolai Hähnle | 2017-07-31 | 17 | -0/+18 |
| | | | | Reviewed-by: Marek Olšák <[email protected]> | ||||
* | nir: add nir_lower_uniforms_to_ubo pass | Nicolai Hähnle | 2017-07-31 | 3 | -0/+99 |
| | | | | | | | | | | This is a further lowering of default-block uniform loads that transforms load_uniform intrinsics into load_ubo intrinsics. This simplifies the rest of the backend. v2: transform from load_uniform instead of straight from variables Reviewed-by: Eric Anholt <[email protected]> | ||||
* | nir: add nir_lower_samplers_as_deref pass | Nicolai Hähnle | 2017-07-31 | 5 | -0/+255 |
| | | | | | | This pass is a replacement for the nir_lower_samplers pass, which has the advantage of keeping sampler references as derefs. This allows a unified treatment of texture instructions and image intrinsics in the backend. | ||||
* | nir: add load_frag_coord system value intrinsic | Nicolai Hähnle | 2017-07-31 | 3 | -0/+6 |
| | | | | | | | Some drivers prefer to treat gl_FragCoord as a system value rather than a fragment shader input, see Const.GLSLFragCoordIsSysVal. Reviewed-by: Jason Ekstrand <[email protected]> | ||||
* | nir: fix nir_lower_wpos_ytransform when gl_FragCoord is a system value | Nicolai Hähnle | 2017-07-31 | 1 | -2/+4 |
| | | | | Reviewed-by: Jason Ekstrand <[email protected]> | ||||
* | nir: add nir_instr_rewrite_deref | Nicolai Hähnle | 2017-07-31 | 2 | -0/+15 |
| | | | | | | Allows modifying a texture instruction's texture and sampler derefs. Reviewed-by: Jason Ekstrand <[email protected]> | ||||
* | mesa: add KHR_no_error support to glPointSize() | Samuel Pitoiset | 2017-07-31 | 3 | -1/+12 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add point_size() helper | Samuel Pitoiset | 2017-07-31 | 1 | -8/+15 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glVertexArrayElementBuffer() | Samuel Pitoiset | 2017-07-31 | 3 | -1/+12 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add vertex_array_element_buffer() helper | Samuel Pitoiset | 2017-07-31 | 1 | -21/+38 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glTextureSubImage*D() | Samuel Pitoiset | 2017-07-31 | 3 | -3/+71 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add texturesubimage_error() helper | Samuel Pitoiset | 2017-07-31 | 1 | -30/+45 |
| | | | | | | | And make texturesubimage() always inline. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glDetachShader() and glDetachObjectARB() | Samuel Pitoiset | 2017-07-31 | 3 | -2/+31 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add detach_shader_error() helper | Samuel Pitoiset | 2017-07-31 | 1 | -9/+21 |
| | | | | | | | And make detach_shader() always inline. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glDrawTransformFeedback*() | Samuel Pitoiset | 2017-07-31 | 1 | -3/+10 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glNamedFramebufferDrawBuffers() | Samuel Pitoiset | 2017-07-31 | 3 | -1/+22 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glDrawBuffers() | Samuel Pitoiset | 2017-07-31 | 3 | -1/+20 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add draw_buffers_error() helper | Samuel Pitoiset | 2017-07-31 | 1 | -115/+130 |
| | | | | | | | And make draw_buffers() always inline. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glDeleteBuffers() | Samuel Pitoiset | 2017-07-31 | 3 | -1/+12 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add delete_buffers() helper | Samuel Pitoiset | 2017-07-31 | 1 | -10/+17 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glNamedFramebufferRenderbuffer() | Samuel Pitoiset | 2017-07-31 | 3 | -1/+20 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glFramebufferRenderbuffer() | Samuel Pitoiset | 2017-07-31 | 3 | -1/+28 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add framebuffer_renderbuffer_error() helper | Samuel Pitoiset | 2017-07-31 | 1 | -46/+63 |
| | | | | | | | And make framebuffer_renderbuffer() always inline. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glDeleteTextures() | Samuel Pitoiset | 2017-07-31 | 3 | -1/+12 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add delete_textures() helper | Samuel Pitoiset | 2017-07-31 | 1 | -14/+20 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glNamedFramebufferDrawBuffer() | Samuel Pitoiset | 2017-07-31 | 3 | -1/+20 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glDrawBuffer() | Samuel Pitoiset | 2017-07-31 | 3 | -1/+20 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add draw_buffer_error() helper | Samuel Pitoiset | 2017-07-31 | 1 | -6/+14 |
| | | | | | | | And make draw_buffer() always inline. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glBindTextures() | Samuel Pitoiset | 2017-07-31 | 3 | -1/+13 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add bind_textures() helper | Samuel Pitoiset | 2017-07-31 | 1 | -19/+28 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glBindTexture() | Samuel Pitoiset | 2017-07-31 | 3 | -1/+12 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add bind_texture() helper | Samuel Pitoiset | 2017-07-31 | 1 | -13/+23 |
| | | | | | | | For KHR_no_error support. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: rename bind_texture() to bind_texture_object() | Samuel Pitoiset | 2017-07-31 | 1 | -6/+5 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glMemoryBarrierByRegion() | Samuel Pitoiset | 2017-07-31 | 3 | -1/+11 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add memory_barrier_by_region() helper | Samuel Pitoiset | 2017-07-31 | 1 | -5/+11 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glMultiDrawArrays() | Samuel Pitoiset | 2017-07-31 | 1 | -2/+9 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glMinSampleShading() | Samuel Pitoiset | 2017-07-31 | 3 | -1/+11 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add min_sample_shading() helper | Samuel Pitoiset | 2017-07-31 | 1 | -9/+15 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glBlendEquationSeparate() | Samuel Pitoiset | 2017-07-31 | 3 | -1/+12 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add blend_equation_separate() helper | Samuel Pitoiset | 2017-07-31 | 1 | -28/+39 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glPrimitiveRestartIndex() | Samuel Pitoiset | 2017-07-31 | 3 | -1/+12 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add primitive_restart_index() helper | Samuel Pitoiset | 2017-07-31 | 1 | -4/+11 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glGenerate*Mipmap() | Samuel Pitoiset | 2017-07-31 | 4 | -2/+34 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add generate_texture_mipmap_error() helper | Samuel Pitoiset | 2017-07-31 | 1 | -18/+28 |
| | | | | | | | And make generate_texture_mipmap() always inline. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add KHR_no_error support to glDeleteSamplers() | Samuel Pitoiset | 2017-07-31 | 3 | -1/+14 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> | ||||
* | mesa: add delete_samplers() helper | Samuel Pitoiset | 2017-07-31 | 1 | -11/+17 |
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> |