summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_shader.cpp
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2015-04-14 14:23:40 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2015-04-22 16:00:31 -0700
commitceb6e5eebe13b85f57cf5a7a22371c10170943a3 (patch)
tree7443d850103892fcb1b529db2a8e0fd5561a1efe /src/mesa/drivers/dri/i965/brw_shader.cpp
parent8a41cd2407c1d219cba98add69609ce3a65b5435 (diff)
downloadexternal_mesa3d-ceb6e5eebe13b85f57cf5a7a22371c10170943a3.zip
external_mesa3d-ceb6e5eebe13b85f57cf5a7a22371c10170943a3.tar.gz
external_mesa3d-ceb6e5eebe13b85f57cf5a7a22371c10170943a3.tar.bz2
i965: Remove the context parameter from brw_texture_offset
It wasn't really being used anyway. We used it to assert that gpu_shader5 is supported in the back-end but that should be caught by the front-end. Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_shader.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_shader.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp
index d0d5cf9..91ffb53 100644
--- a/src/mesa/drivers/dri/i965/brw_shader.cpp
+++ b/src/mesa/drivers/dri/i965/brw_shader.cpp
@@ -393,14 +393,8 @@ brw_math_function(enum opcode op)
}
uint32_t
-brw_texture_offset(struct gl_context *ctx, int *offsets,
- unsigned num_components)
+brw_texture_offset(int *offsets, unsigned num_components)
{
- /* If the driver does not support GL_ARB_gpu_shader5, the offset
- * must be constant.
- */
- assert(offsets != NULL || ctx->Extensions.ARB_gpu_shader5);
-
if (!offsets) return 0; /* nonconstant offset; caller will handle it. */
/* Combine all three offsets into a single unsigned dword: