[Mesa-dev] [PATCH 1/4] st/dri: move image extension into the common file

2017-06-08 Thread gurchetansi...@chromium.org
From: Gurchetan Singh This image extension is is needed by the Android studio emulator when using the host's GLES implementation. This patch moves the extension code from dri2.c to dri_extensions.c. Since some functions in this extension are initialized at runtime by dri2.c, we need to expose th

[Mesa-dev] [PATCH 3/4] st/dri: use image extension in drisw.c

2017-06-08 Thread gurchetansi...@chromium.org
From: Gurchetan Singh This adds the image extension to the software GL implementation. --- src/gallium/state_trackers/dri/drisw.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/state_trackers/dri/drisw.c b/src/gallium/state_trackers/dri/drisw.c index 8fbfa9ecea..45772532f3 1

[Mesa-dev] [PATCH 2/4] st/dri: consolidate image extension logic

2017-06-08 Thread gurchetansi...@chromium.org
From: Gurchetan Singh We can stop exposing functions needed to initialize the image extension by creating a helper function. --- src/gallium/state_trackers/dri/dri2.c | 33 ++--- src/gallium/state_trackers/dri/dri_extensions.c | 33 +++-- src/gal

[Mesa-dev] [PATCH 4/4] egl/dri2: add image extension to swrast_core_extensions

2017-06-08 Thread gurchetansi...@chromium.org
From: Gurchetan Singh Otherwise, this extension is not visible to the EGL user --- src/egl/drivers/dri2/egl_dri2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 7175e827c9..9e845e99e3 100644 --- a/src/egl/drivers/dri2/

[Mesa-dev] [PATCH] swrast: Don't crash when there are no render slices

2017-11-03 Thread gurchetansi...@chromium.org
From: Stéphane Marchesin It is legal not to have slices (for example with a 0x0 texture) so we should handle that case. --- src/mesa/swrast/s_texrender.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mesa/swrast/s_texrender.c b/src/mesa/swrast/s_texrender.c index 4e

[Mesa-dev] [PATCH] egl/surfaceless: Use KMS swrast fallback

2017-09-29 Thread gurchetansi...@chromium.org
From: Gurchetan Singh The kms_swrast extension is an actively developed software fallback, and platform_surfaceless can use it if there are no available hardware drivers. --- src/egl/drivers/dri2/platform_surfaceless.c | 77 ++--- 1 file changed, 48 insertions(+), 29 dele

[Mesa-dev] [PATCH 1/2] egl/surfaceless: add probe device helper function

2017-10-02 Thread gurchetansi...@chromium.org
From: Gurchetan Singh This will help us initialize a software driver, if it's needed or requested. --- src/egl/drivers/dri2/platform_surfaceless.c | 67 + 1 file changed, 39 insertions(+), 28 deletions(-) diff --git a/src/egl/drivers/dri2/platform_surfaceless.c b/sr

[Mesa-dev] [PATCH 2/2] egl/surfaceless: Use KMS swrast fallback

2017-10-02 Thread gurchetansi...@chromium.org
From: Gurchetan Singh The kms_swrast extension is an actively developed software fallback, and platform_surfaceless can use it if there are no available hardware drivers. v2: Split into 2 patches, use booleans, check LIBGL_ALWAYS_SOFTWARE, and modify the eglLog level (Emil, Eric, Tomasz). --

[Mesa-dev] [PATCH] virgl: add shader offset alignment to to v2 caps struct

2018-06-04 Thread gurchetansi...@chromium.org
This is the SSBO analogue to fe0647. User supplied data must be a multiple of GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT. This fixes 44 GLES31 tests on airlied@'s GLES31 sketch branches with Nvidia hardware, but this patch standalone can applied to master. The alignment restriction on Nvidia is 32,

[Mesa-dev] [PATCH 2/2] virgl: use bits in caps set v2

2018-06-04 Thread gurchetansi...@chromium.org
Let's add another field to caps v2, that can help report boolean values. Suggested-by: Gert Wollny Suggested-by: Dave Airlie --- src/gallium/drivers/virgl/virgl_hw.h | 5 + src/gallium/drivers/virgl/virgl_winsys.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/gallium/drivers

[Mesa-dev] [PATCH] st/mesa: update the blend before a full color clear

2018-02-08 Thread gurchetansi...@chromium.org
From: Gurchetan Singh Consider this series of events: glColorMask(GL_FALSE, GL_TRUE, GL_TRUE, GL_TRUE); glClearColor(0.125f, 0.25f, 0.5f, 1.0f); glClear(GL_COLOR_BUFFER_BIT); glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); glClearColor(0.1f, 0.1f, 0.1f, 1.0f); glClear(GL_COLOR_BUFFER_BIT); Wit

[Mesa-dev] [PATCH] mesa: don't clamp just based on ARB_viewport_array extension

2018-02-14 Thread gurchetansi...@chromium.org
From: Gurchetan Singh The ARB_viewport_array spec says: "Dependencies OpenGL 1.0 is required. OpenGL 3.2 or the EXT_geometry_shader4 or ARB_geometry_shader4 extensions are required. This extension is written against the OpenGL 3.2 (Compatibility) Specification." As such, w

[Mesa-dev] [PATCH] mesa: don't clamp just based on ARB_viewport_array extension

2018-02-14 Thread gurchetansi...@chromium.org
From: Gurchetan Singh The ARB_viewport_array spec says: "Dependencies OpenGL 1.0 is required. OpenGL 3.2 or the EXT_geometry_shader4 or ARB_geometry_shader4 extensions are required. This extension is written against the OpenGL 3.2 (Compatibility) Specification." As such, w

[Mesa-dev] [PATCH] virgl: add shader offset alignment to to v2 caps struct

2018-04-12 Thread gurchetansi...@chromium.org
This is the SSBO analogue to fe0647. User supplied data must be a multiple of GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT. This fixes 44 GLES31 tests on airlied@'s GLES31 sketch branches with Nvidia hardware, but this patch standalone can applied to master. The alignment restriction on Nvidia is 32,