summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_fs.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2015-05-05 21:05:45 +0300
committerFrancisco Jerez <currojerez@riseup.net>2015-08-11 15:07:40 +0300
commit84431c1f1d343c85f3b7fa265293a1d245ba9cf3 (patch)
tree32ebecfab577ae0afdca39126a8948ee46cc4828 /src/mesa/drivers/dri/i965/brw_fs.cpp
parentcaae52561dabb2d20f2369c547e660d078974285 (diff)
i965: Teach type_size() about the size of an image uniform.
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 6fe900aa63f..82cb499a326 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -484,6 +484,7 @@ fs_visitor::type_size(const struct glsl_type *type)
case GLSL_TYPE_SUBROUTINE:
return 1;
case GLSL_TYPE_IMAGE:
+ return BRW_IMAGE_PARAM_SIZE;
case GLSL_TYPE_VOID:
case GLSL_TYPE_ERROR:
case GLSL_TYPE_INTERFACE: