Summary: | [bisected] wflinfo fails ctx->Const.MaxCombinedTextureImageUnits assertion | ||
---|---|---|---|
Product: | Mesa | Reporter: | Clayton Craft <clayton.a.craft> |
Component: | Mesa core | Assignee: | Marek Olšák <maraeo> |
Status: | RESOLVED FIXED | QA Contact: | mesa-dev |
Severity: | normal | ||
Priority: | medium | ||
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Clayton Craft
2018-08-24 00:08:31 UTC
Here's your fix: diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 6ba64e4e06d..51cae9dc637 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -422,7 +422,7 @@ brw_initialize_context_constants(struct brw_context *brw) }; unsigned num_stages = 0; - for (int i = 0; i < MESA_SHADER_STAGES; i++) { + for (int i = 0; i <= MESA_SHADER_FRAGMENT; i++) { if (stage_exists[i]) num_stages++; } Feel free to push that. Yeah, that doesn't work...I basically tried that in b03dcb1e5f507c5950d0de053a6f76e6306ee71f. You need to include compute still in MaxShaderStorageBufferBindings and MaxUniformBufferBindings. But then there's the issue 5 in OES_tessellation_shader that says we should include compute in MAX_COMBINED_TEXTURE_IMAGE_UNITS, too...so even with that it still doesn't work... Reverted for now (9d670fd86cc13df0ddff5c6fcb0835926e9a8088), so closing this. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.