[Mesa-dev] [PATCH 28/29] i965: Define implementation constants for ARB_shader_image_load_store.
Kenneth Graunke
kenneth at whitecape.org
Mon May 4 23:37:57 PDT 2015
On Saturday, May 02, 2015 06:29:55 PM Francisco Jerez wrote:
> Reviewed-by: Paul Berry <stereotype441 at gmail.com>
>
> v2: Drop VS support pre-Gen8, drop GS support.
> ---
> src/mesa/drivers/dri/i965/brw_context.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
> index 30263d0..bd8aa32 100644
> --- a/src/mesa/drivers/dri/i965/brw_context.c
> +++ b/src/mesa/drivers/dri/i965/brw_context.c
> @@ -501,6 +501,18 @@ brw_initialize_context_constants(struct brw_context *brw)
> ctx->Const.Program[MESA_SHADER_GEOMETRY].MaxAtomicBuffers = BRW_MAX_ABO;
> ctx->Const.Program[MESA_SHADER_COMPUTE].MaxAtomicBuffers = BRW_MAX_ABO;
> ctx->Const.MaxCombinedAtomicBuffers = 3 * BRW_MAX_ABO;
> +
> + ctx->Const.Program[MESA_SHADER_FRAGMENT].MaxImageUniforms =
> + BRW_MAX_IMAGES;
> + ctx->Const.Program[MESA_SHADER_VERTEX].MaxImageUniforms =
> + (brw->scalar_vs ? BRW_MAX_IMAGES : 0);
> + ctx->Const.Program[MESA_SHADER_COMPUTE].MaxImageUniforms =
> + BRW_MAX_IMAGES;
> + ctx->Const.MaxImageUnits = MAX_IMAGE_UNITS;
> + ctx->Const.MaxCombinedImageUnitsAndFragmentOutputs =
> + MAX_IMAGE_UNITS + BRW_MAX_DRAW_BUFFERS;
> + ctx->Const.MaxImageSamples = 0;
> + ctx->Const.MaxCombinedImageUniforms = 3 * BRW_MAX_IMAGES;
> }
>
> /* Gen6 converts quads to polygon in beginning of 3D pipeline,
>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150504/3a906149/attachment.sig>
More information about the mesa-dev
mailing list