intel/blorp: Add support for gen4-5 SF programs
As part of enabling support for SF programs, we plumb the SF URB size through to emit_urb_config. For now, it's always zero but, on gen4, it may be something larger. Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
@@ -148,11 +148,14 @@ blorp_flush_range(struct blorp_batch *batch, void *start, size_t size)
|
||||
}
|
||||
|
||||
static void
|
||||
blorp_emit_urb_config(struct blorp_batch *batch, unsigned vs_entry_size)
|
||||
blorp_emit_urb_config(struct blorp_batch *batch,
|
||||
unsigned vs_entry_size, unsigned sf_entry_size)
|
||||
{
|
||||
struct anv_device *device = batch->blorp->driver_ctx;
|
||||
struct anv_cmd_buffer *cmd_buffer = batch->driver_batch;
|
||||
|
||||
assert(sf_entry_size == 0);
|
||||
|
||||
const unsigned entry_size[4] = { vs_entry_size, 1, 1, 1 };
|
||||
|
||||
genX(emit_urb_setup)(device, &cmd_buffer->batch,
|
||||
|
Reference in New Issue
Block a user