[Mesa-dev] [PATCH 2/2] i965: Advertise 8 subpixel bits always.

Anuj Phogat anuj.phogat at gmail.com
Mon Nov 7 19:52:59 UTC 2016


On Sun, Nov 6, 2016 at 10:45 PM, Chris Forbes <chrisf at ijw.co.nz> wrote:

> The mesa default is 4, but we program the hardware for 8 on all
> generations.
>
> Signed-off-by: Chris Forbes <chrisforbes at google.com>
> ---
>  src/mesa/drivers/dri/i965/brw_context.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_context.c
> b/src/mesa/drivers/dri/i965/brw_context.c
> index 3085a98..d8174c6 100644
> --- a/src/mesa/drivers/dri/i965/brw_context.c
> +++ b/src/mesa/drivers/dri/i965/brw_context.c
> @@ -538,6 +538,7 @@ brw_initialize_context_constants(struct brw_context
> *brw)
>        ctx->Const.MaxProgramTextureGatherComponents = 1;
>
>     ctx->Const.MaxUniformBlockSize = 65536;
> +   ctx->Const.SubPixelBits = 8;
>
>     for (int i = 0; i < MESA_SHADER_STAGES; i++) {
>        struct gl_program_constants *prog = &ctx->Const.Program[i];
> --
> 2.10.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


​Both patches are:
​

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161107/ac838b06/attachment.html>


More information about the mesa-dev mailing list