Mesa (master): iris: Use blob_write_uint32 for num_system_values
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Aug 12 10:29:16 UTC 2020
Module: Mesa
Branch: master
Commit: e39326e617dbf53fdbe1f561b069fe6f875545c4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e39326e617dbf53fdbe1f561b069fe6f875545c4
Author: Jason Ekstrand <jason at jlekstrand.net>
Date: Tue Aug 11 10:04:28 2020 -0500
iris: Use blob_write_uint32 for num_system_values
We read it with blob_read_uint32; we should write it as uint32 as well.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6280>
---
src/gallium/drivers/iris/iris_disk_cache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/iris/iris_disk_cache.c b/src/gallium/drivers/iris/iris_disk_cache.c
index f03860f263b..f55a83487a7 100644
--- a/src/gallium/drivers/iris/iris_disk_cache.c
+++ b/src/gallium/drivers/iris/iris_disk_cache.c
@@ -111,7 +111,7 @@ iris_disk_cache_store(struct disk_cache *cache,
*/
blob_write_bytes(&blob, shader->prog_data, brw_prog_data_size(stage));
blob_write_bytes(&blob, shader->map, shader->prog_data->program_size);
- blob_write_bytes(&blob, &shader->num_system_values, sizeof(unsigned));
+ blob_write_uint32(&blob, shader->num_system_values);
blob_write_bytes(&blob, shader->system_values,
shader->num_system_values * sizeof(enum brw_param_builtin));
blob_write_bytes(&blob, prog_data->param,
More information about the mesa-commit
mailing list