[Mesa-dev] [PATCH 24/25] i965/gen7: Define implementation constants for ARB_shader_image_load_store.

Francisco Jerez currojerez at riseup.net
Mon Dec 2 11:42:36 PST 2013


---
 src/mesa/drivers/dri/i965/brw_context.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 6de6759..ce8c311 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -429,6 +429,15 @@ brw_initialize_context_constants(struct brw_context *brw)
       ctx->Const.VertexProgram.MaxAtomicBuffers = BRW_MAX_ABO;
       ctx->Const.GeometryProgram.MaxAtomicBuffers = BRW_MAX_ABO;
       ctx->Const.MaxCombinedAtomicBuffers = 3 * BRW_MAX_ABO;
+
+      ctx->Const.FragmentProgram.MaxImageUniforms = MAX_UNIFORMS;
+      ctx->Const.VertexProgram.MaxImageUniforms = MAX_UNIFORMS;
+      ctx->Const.FragmentProgram.MaxImageUniforms = MAX_UNIFORMS;
+      ctx->Const.MaxImageUnits = BRW_MAX_IMAGES;
+      ctx->Const.MaxCombinedImageUnitsAndFragmentOutputs =
+         BRW_MAX_IMAGES + BRW_MAX_DRAW_BUFFERS;
+      ctx->Const.MaxImageSamples = 1;
+      ctx->Const.MaxCombinedImageUniforms = 3 * MAX_UNIFORMS;
    }
 
    /* Gen6 converts quads to polygon in beginning of 3D pipeline,
-- 
1.8.3.4



More information about the mesa-dev mailing list