Henri Verbeet : wined3d: Use wined3d_mask_from_size() in geometry_shader_init_stream_output().

Alexandre Julliard julliard at winehq.org
Mon Jan 24 16:28:05 CST 2022


Module: wine
Branch: master
Commit: e9a109835fe484c0ce885bf5e25b30535e7b36dc
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=e9a109835fe484c0ce885bf5e25b30535e7b36dc

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Mon Jan 24 13:59:05 2022 +0100

wined3d: Use wined3d_mask_from_size() in geometry_shader_init_stream_output().

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/shader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/shader.c b/dlls/wined3d/shader.c
index 24d08a02a38..157aa6283ac 100644
--- a/dlls/wined3d/shader.c
+++ b/dlls/wined3d/shader.c
@@ -3882,7 +3882,7 @@ static HRESULT geometry_shader_init_stream_output(struct wined3d_shader *shader,
             return E_INVALIDARG;
         }
 
-        mask = ((1u << e->component_count) - 1) << component_idx;
+        mask = wined3d_mask_from_size(e->component_count) << component_idx;
         if ((output->mask & 0xff & mask) != mask)
         {
             WARN("Invalid component range %u-%u (mask %#x), output mask %#x.\n",




More information about the wine-cvs mailing list