diff options
author | Jason Ekstrand <[email protected]> | 2016-07-08 22:10:11 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-07-13 11:47:37 -0700 |
commit | 01855d7331cd34633b8accc343ddf0a86a860c94 (patch) | |
tree | f2865bce7de37685500d7d7c0e638ec7432b12ad /src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp | |
parent | 8c76b9bdce4c38ab7a600706c4e0151557d75fc5 (diff) |
isl: Use bpb in a few places where it's more natural than bs
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp b/src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp index fc1fc139dde..a4774e6cac6 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp @@ -982,7 +982,7 @@ namespace brw { /* Untyped surface reads return 32 bits of the surface per * component, without any sort of unpacking or type conversion, */ - const unsigned size = isl_format_get_layout(format)->bs / 4; + const unsigned size = isl_format_get_layout(format)->bpb / 32; /* they don't properly handle out of bounds access, so we have to * check manually if the coordinates are valid and predicate the * surface read on the result, @@ -1130,7 +1130,7 @@ namespace brw { /* Untyped surface writes store 32 bits of the surface per * component, without any sort of packing or type conversion, */ - const unsigned size = isl_format_get_layout(format)->bs / 4; + const unsigned size = isl_format_get_layout(format)->bpb / 32; /* they don't properly handle out of bounds access, so we have * to check manually if the coordinates are valid and predicate |