mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-16 05:00:19 +01:00
fd/replay: Dump wrbuf into cwd rather than exe directory
It didn't make any sense to output into the bin directory, it has been replaced with the working directory instead. Signed-off-by: Mark Collins <mark@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28253>
This commit is contained in:
parent
d043ebc941
commit
e10202fdf4
1 changed files with 4 additions and 3 deletions
|
|
@ -363,14 +363,15 @@ device_dump_wrbuf(struct device *dev)
|
|||
if (!u_vector_length(&dev->wrbufs))
|
||||
return;
|
||||
|
||||
char buffer_dir[256];
|
||||
snprintf(buffer_dir, sizeof(buffer_dir), "%s/buffers", exename);
|
||||
char buffer_dir[PATH_MAX];
|
||||
getcwd(buffer_dir, sizeof(buffer_dir));
|
||||
strcat(buffer_dir, "/buffers");
|
||||
rmdir(buffer_dir);
|
||||
mkdir(buffer_dir, 0777);
|
||||
|
||||
struct wrbuf *wrbuf;
|
||||
u_vector_foreach(wrbuf, &dev->wrbufs) {
|
||||
char buffer_path[256];
|
||||
char buffer_path[PATH_MAX];
|
||||
snprintf(buffer_path, sizeof(buffer_path), "%s/%s", buffer_dir, wrbuf->name);
|
||||
FILE *f = fopen(buffer_path, "wb");
|
||||
if (!f) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue