From 2975e4c56a7aeade5a324aa4d446f18cc176fa06 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 28 Sep 2017 16:25:31 -0700 Subject: intel: Rewrite the world of push/pull params This moves us away to the array of pointers model and onto a model where each param is represented by a generic uint32_t handle. We reserve 2^16 of these handles for builtins that get generated by somewhere inside the compiler and have well-defined meanings. Generic params have handles whose meanings are defined by the driver. The primary downside to this new approach is that it moves a little bit of the work that we would normally do at compile time to draw time. On my laptop this hurts OglBatch6 by no more than 1% and doesn't seem to have any measurable affect on OglBatch7. So, while this may come back to bite us, it doesn't look too bad. Reviewed-by: Jordan Justen Reviewed-by: Kenneth Graunke --- src/intel/blorp/blorp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/intel/blorp') diff --git a/src/intel/blorp/blorp.c b/src/intel/blorp/blorp.c index a426a030d29..7cc6335f2f6 100644 --- a/src/intel/blorp/blorp.c +++ b/src/intel/blorp/blorp.c @@ -225,7 +225,7 @@ blorp_compile_vs(struct blorp_context *blorp, void *mem_ctx, const unsigned *program = brw_compile_vs(compiler, blorp->driver_ctx, mem_ctx, &vs_key, vs_prog_data, nir, - NULL, false, -1, program_size, NULL); + false, -1, program_size, NULL); return program; } -- cgit v1.2.3