intel/blorp: Emit compute program based on BLORP_BATCH_USE_COMPUTE

Reworks:
 * Don't pack params, just memcpy param struct (s-b Jason)
 * Old subject: "intel/blorp: Emit compute program if
   params.cs_prog_data is set"
 * Various cleanups of push-const size/alignment (s-b Jason)
 * Fix subslice count by moving to devinfo (s-b Ken)
 * Simplify cw.InterfaceDescriptor code (s-b Ken)
 * Drop some comments from i965 (s-b Ken)

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11564>
This commit is contained in:
Jordan Justen
2018-10-26 12:52:44 -07:00
committed by Marge Bot
parent 3e13c4ccf2
commit 90a39cac87
2 changed files with 264 additions and 10 deletions

View File

@@ -78,6 +78,11 @@ enum blorp_batch_flags {
* color buffer.
*/
BLORP_BATCH_NO_UPDATE_CLEAR_COLOR = (1 << 2),
/* This flag indicates that blorp should use a compute program for the
* operation.
*/
BLORP_BATCH_USE_COMPUTE = (1 << 3),
};
struct blorp_batch {