Mesa (main): intel/vec4: Add some asserts to move_push_to_pull
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed May 19 14:55:49 UTC 2021
Module: Mesa
Branch: main
Commit: 3d1ac996d0c8da67a68bd3e43eef390247163318
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3d1ac996d0c8da67a68bd3e43eef390247163318
Author: Jason Ekstrand <jason at jlekstrand.net>
Date: Mon May 3 15:34:41 2021 -0500
intel/vec4: Add some asserts to move_push_to_pull
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10571>
---
src/intel/compiler/brw_vec4.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/intel/compiler/brw_vec4.cpp b/src/intel/compiler/brw_vec4.cpp
index 0ce9aef4c2a..8cf74f526fa 100644
--- a/src/intel/compiler/brw_vec4.cpp
+++ b/src/intel/compiler/brw_vec4.cpp
@@ -929,6 +929,9 @@ vec4_visitor::move_push_constants_to_pull_constants()
if (this->uniforms * 4 <= max_uniform_components)
return;
+ assert(compiler->supports_pull_constants);
+ assert(compiler->compact_params);
+
/* Make some sort of choice as to which uniforms get sent to pull
* constants. We could potentially do something clever here like
* look for the most infrequently used uniform vec4s, but leave
More information about the mesa-commit
mailing list