mesa/st: Remove internal flushes from Mesa state tracker.
Now that transfers are context operations it is the driver's responsibility to ensure that transfers happen in order with all other context operations, so flushes and finishes inside Mesa should be no longer necessary. The attached patch implements that. This should proportionate significant improvements for hardware drivers which are able to stream transfers in the command buffers. You can use the softpipe/llvmpipe_flush_resource() as reference implementation of the worst case scenario, where the driver is not able to streamline transfers. But the expectation is that driver implementators will want to avoid flushing as much as possible.
This commit is contained in:
@@ -44,7 +44,6 @@
|
||||
#include "st_atom.h"
|
||||
#include "st_atom_constbuf.h"
|
||||
#include "st_program.h"
|
||||
#include "st_inlines.h"
|
||||
|
||||
|
||||
/**
|
||||
@@ -84,7 +83,7 @@ void st_upload_constants( struct st_context *st,
|
||||
}
|
||||
|
||||
/* load Mesa constants into the constant buffer */
|
||||
st_no_flush_pipe_buffer_write(st, *cbuf,
|
||||
pipe_buffer_write(st->pipe, *cbuf,
|
||||
0, paramBytes,
|
||||
params->ParameterValues);
|
||||
|
||||
|
Reference in New Issue
Block a user