mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 16:50:10 +01:00
i965/fs: Guess nr_color_regions better in precompile
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
6c9de691c7
commit
046f8d8a6f
1 changed files with 3 additions and 1 deletions
|
|
@ -3590,7 +3590,9 @@ brw_fs_precompile(struct gl_context *ctx, struct gl_shader_program *prog)
|
|||
key.render_to_fbo = _mesa_is_user_fbo(ctx->DrawBuffer);
|
||||
}
|
||||
|
||||
key.nr_color_regions = 1;
|
||||
key.nr_color_regions = _mesa_bitcount_64(fp->Base.OutputsWritten &
|
||||
~(BITFIELD64_BIT(FRAG_RESULT_DEPTH) |
|
||||
BITFIELD64_BIT(FRAG_RESULT_SAMPLE_MASK)));
|
||||
|
||||
/* GL_FRAGMENT_SHADER_DERIVATIVE_HINT is almost always GL_DONT_CARE. The
|
||||
* quality of the derivatives is likely to be determined by the driconf
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue