From: Jesse Natalie Date: Thu, 23 Mar 2023 16:30:30 +0000 (-0700) Subject: d3d12: Report correct texel buffer max size X-Git-Tag: upstream/23.3.3~11207 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=efe3f246b1e73fbe4b9c235d41ee1e29e02b36b2;p=platform%2Fupstream%2Fmesa.git d3d12: Report correct texel buffer max size Part-of: --- diff --git a/src/gallium/drivers/d3d12/d3d12_screen.cpp b/src/gallium/drivers/d3d12/d3d12_screen.cpp index b707164..0d2ca39 100644 --- a/src/gallium/drivers/d3d12/d3d12_screen.cpp +++ b/src/gallium/drivers/d3d12/d3d12_screen.cpp @@ -149,6 +149,9 @@ d3d12_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_TEXTURE_SWIZZLE: return 1; + case PIPE_CAP_MAX_TEXEL_BUFFER_ELEMENTS_UINT: + return 1 << D3D12_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP; + case PIPE_CAP_MAX_TEXTURE_2D_SIZE: return D3D12_REQ_TEXTURE2D_U_OR_V_DIMENSION;