[Mesa-dev] [PATCH] i965: avoid fence fd dup in EGL layer

2017-05-05 Thread Randy Xu
Follow up "i965: Solve Android native fence fd double close" The _EGLSync.SyncFd is not neccesary to keep after pass to dri driver. Test: Run Vulkan and GLES stress test and no crash. --- src/egl/drivers/dri2/egl_dri2.c | 10 ++ src/mesa/drivers/dri/i965/brw_sync.c | 2 +- 2 files c

[Mesa-dev] [PATCH] i965: Solve Android native fence fd double close issue

2017-04-17 Thread Randy Xu
ash. Signed-off-by: Randy Xu --- src/mesa/drivers/dri/i965/brw_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_sync.c b/src/mesa/drivers/dri/i965/brw_sync.c index 5b78503..a8356c3 100644 --- a/src/mesa/drivers/dri/i965/brw_sync.c +++ b/src/m

[Mesa-dev] [PATCH] anv/genX: Solve the anv_CmdClearColorImage crash issue

2017-03-20 Thread Randy Xu
From: Xu Randy We should use anv_get_layerCount() to access layerCount of VkImageSub- resourceRange in anv_CmdClearColorImage and anv_CmdClearDepthStencil- Image, which handles the VK_REMAINING_ARRAY_LAYERS (~0) case. Test: Sample multithreadcmdbuf from LunarG can run without crash Signed-off-b

[Mesa-dev] [PATCH] Vulkan: Solve the vkCreateGraphicsPipelines crash

2017-03-18 Thread Randy Xu
From: "Xu,Randy" The crash is due to NULL pColorBlendState, which is legal if the pipeline has rasterization disabled or if the subpass of the render pass the pipeline is created against does not use any color attachments. Test: Sample subpasses from LunarG can run without crash Signed-off-by:

[Mesa-dev] [PATCH] Vulkan: Add VK_ANDROID_native_buffer to device extension list

2017-02-28 Thread Randy Xu
The VK_ANDROID_native_buffer is implemented in Android Vulkan HAL, not driver, but must be claimed in device extension list. Otherwise, this extension will be screened off in framework and driver. Test: Pass Vulkan dEQP-VK.wsi.android.swapchain.* on Android platform Signed-off-by: Randy Xu

[Mesa-dev] [PATCH] i965: Add RGBX8888 and RGBA8888 to EGL configure and reorder the list

2017-01-11 Thread Randy Xu
The failure cannot be reproduced on X11 platform as Intel does not support 16bit visuals with X driver Signed-off-by: Randy Xu --- src/mesa/drivers/dri/i965/intel_screen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/dri

[Mesa-dev] [PATCH] Mesa: Fix error code for glTexImage3D in GLES

2016-12-20 Thread Randy Xu
3d. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99076 Signed-off-by: Randy Xu --- src/mesa/main/glformats.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index a95909c..3070db9 100644 --- a/src/mesa/main/glformats.c +++ b/src/m

[Mesa-dev] [PATCH] Mesa: Fix error code for glTexImage3D in GLES

2016-12-15 Thread Randy Xu
From: "Xu,Randy" The ES specification says that TexImage3D should return GL_INVALID_OPERATION if the internal format is DEPTH_COMPONENT, DEPTH_-STENCIL or STENCIL_INDEX. The current code returns INVALID_ENUM as _mesa_error_check_format_and_type is used by glReadPixels also and the GL specificatio

[Mesa-dev] [PATCH] Mesa: Return GL error INVALID_OPERATION in case invalid format/type

2016-12-14 Thread Randy Xu
From: "Xu,Randy" Refer to GLES3.2 spec in 8.5 Textures with a base internal format of DEPTH_COMPONENT, DEPTH_- STENCIL or STENCIL_INDEX are supported by texture image specification commands only if target is TEXTURE_2D, TEXTURE_2D_MULTISAMPLE, TEXTURE_2D_ARRAY, TEXTURE_2D_MULTISAMPLE_ARRAY, TEXTU

[Mesa-dev] [PATCH] Mesa: Return GL error INVALID_OPERATION in case invalid format/type

2016-12-13 Thread Randy Xu
From: "Xu,Randy" Refer to GLES3.2 spec in 8.5 Textures with a base internal format of DEPTH_COMPONENT, DEPTH_- STENCIL or STENCIL_INDEX are supported by texture image specification commands only if target is TEXTURE_2D, TEXTURE_2D_MULTISAMPLE, TEXTURE_2D_ARRAY, TEXTURE_2D_MULTISAMPLE_ARRAY, TEXTU

[Mesa-dev] [PATCH] i965: solve cubemap negative x/y/z faces buffer offset issue in dEQP.

2016-10-10 Thread Randy Xu
From: "Xu,Randy" Add the miptree level/slice x/y_offset when count the surface offset in brw_emit_surface_state. The surface offset has two parts, one is from mt->offset, which should be 32 aligned in width/height for tiled buffer; another is from mt->level[current_level].slice[current_slice]. x/