i965: support only color formats with memory objects
There are issues with depth support and lack of support for
combined depth+stencil, let's support only color formats for now.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4712
Fixes: f73aeca0ce
("i965: Initial implementation for EXT_memory_object_*")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Rohan Garg <rohan.garg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10646>
This commit is contained in:
@@ -197,7 +197,6 @@ brw_isl_format_for_mesa_format(mesa_format mesa_format)
|
||||
[MESA_FORMAT_RGBX_UNORM16] = ISL_FORMAT_R16G16B16X16_UNORM,
|
||||
[MESA_FORMAT_RGBX_FLOAT16] = ISL_FORMAT_R16G16B16X16_FLOAT,
|
||||
[MESA_FORMAT_RGBX_FLOAT32] = ISL_FORMAT_R32G32B32X32_FLOAT,
|
||||
[MESA_FORMAT_Z_UNORM16] = ISL_FORMAT_R16_UNORM,
|
||||
};
|
||||
|
||||
assert(mesa_format < MESA_FORMAT_COUNT);
|
||||
|
@@ -353,6 +353,10 @@ intel_texture_for_memory_object(struct gl_context *ctx,
|
||||
struct gl_texture_image *image = tex_obj->Image[0][0];
|
||||
struct isl_surf surf;
|
||||
|
||||
/* Only color formats are supported. */
|
||||
if (!_mesa_is_format_color_format(image->TexFormat))
|
||||
return GL_FALSE;
|
||||
|
||||
isl_tiling_flags_t tiling_flags = ISL_TILING_ANY_MASK;
|
||||
if (tex_obj->TextureTiling == GL_LINEAR_TILING_EXT)
|
||||
tiling_flags = ISL_TILING_LINEAR_BIT;
|
||||
|
Reference in New Issue
Block a user