From d098b3b973aa0a79e1bdd4626a0c4c2a4502697b Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 20 May 2025 18:04:45 -0700 Subject: [PATCH] crocus: Drop 16X MSAA code remnants No platforms supported by crocus actually support 16X MSAA, so this is just copy-pasted from iris without actually offering any benefit. Reviewed-by: Lionel Landwerlin Reviewed-by: Sagar Ghuge Part-of: --- src/gallium/drivers/crocus/crocus_context.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/gallium/drivers/crocus/crocus_context.c b/src/gallium/drivers/crocus/crocus_context.c index bb522d5c1da..c766f6da5d9 100644 --- a/src/gallium/drivers/crocus/crocus_context.c +++ b/src/gallium/drivers/crocus/crocus_context.c @@ -155,18 +155,14 @@ crocus_get_sample_position(struct pipe_context *ctx, { union { struct { - float x[16]; - float y[16]; + float x[8]; + float y[8]; } a; struct { float _0XOffset, _1XOffset, _2XOffset, _3XOffset, - _4XOffset, _5XOffset, _6XOffset, _7XOffset, - _8XOffset, _9XOffset, _10XOffset, _11XOffset, - _12XOffset, _13XOffset, _14XOffset, _15XOffset; + _4XOffset, _5XOffset, _6XOffset, _7XOffset; float _0YOffset, _1YOffset, _2YOffset, _3YOffset, - _4YOffset, _5YOffset, _6YOffset, _7YOffset, - _8YOffset, _9YOffset, _10YOffset, _11YOffset, - _12YOffset, _13YOffset, _14YOffset, _15YOffset; + _4YOffset, _5YOffset, _6YOffset, _7YOffset; } v; } u; switch (sample_count) { @@ -174,7 +170,6 @@ crocus_get_sample_position(struct pipe_context *ctx, case 2: INTEL_SAMPLE_POS_2X(u.v._); break; case 4: INTEL_SAMPLE_POS_4X(u.v._); break; case 8: INTEL_SAMPLE_POS_8X(u.v._); break; - case 16: INTEL_SAMPLE_POS_16X(u.v._); break; default: UNREACHABLE("invalid sample count"); }