Adjust parameters to match
authorCafe <cafe@not.applicable>
Wed, 26 Jul 2017 00:00:00 +0000 (00:00 +0000)
committerCafe <cafe@not.applicable>
Wed, 26 Jul 2017 16:30:39 +0000 (16:30 +0000)
re.c

diff --git a/re.c b/re.c
index dc900c6776f22867ce9033970d968f10c08e145e..9610439133cf65fa88077b33c7b35defcab3f77d 100644 (file)
--- a/re.c
+++ b/re.c
@@ -85,7 +85,7 @@ uint64_t make_mfbd(bool tiler)
        mfbd->unknown_gpu_addressN = (uint32_t) galloc(64);
 
        /* Match traces. TODO decode */
-       mfbd->flags = 0x1000;
+       mfbd->flags = 0xF0;
        mfbd->heap_free_address = 0x102000000;
        mfbd->blah = 0x1F00000000;
        mfbd->unknown3 = tiler ? 0 : 0xFFFFF8C0;
@@ -146,19 +146,24 @@ int job_chain_fragment(int fd) {
                .dependency_type = BASE_JD_DEP_TYPE_INVALID
        };
 
+       struct base_dependency depTiler = {
+               .atom_id = atom_count /* last one */,
+               .dependency_type = BASE_JD_DEP_TYPE_DATA
+       };
+
        uint64_t resource = framebuffer | BASE_EXT_RES_ACCESS_EXCLUSIVE;
 
        struct base_jd_atom_v2 job = {
                .jc = (uint32_t) packet,
                .extres_list = &resource,
                .nr_extres = 1,
-               .core_req = BASE_JD_REQ_FS,
+               .core_req = BASE_JD_REQ_EXTERNAL_RESOURCES | BASE_JD_REQ_FS,
                .atom_number = ++atom_count,
-               .prio = BASE_JD_PRIO_LOW,
+               .prio = BASE_JD_PRIO_MEDIUM,
                .device_nr = 0
        };
 
-       job.pre_dep[0] = depNoDep;
+       job.pre_dep[0] = depTiler;
        job.pre_dep[1] = depNoDep;
 
        submit_job(fd, job);
@@ -354,9 +359,9 @@ int job_chain_vertex_tiler(int fd) {
                .jc = (uint32_t) set,
                .extres_list = NULL,
                .nr_extres = 0,
-               .core_req = BASE_JD_REQ_CS | BASE_JD_REQ_T,
+               .core_req = BASE_JD_REQ_CS | BASE_JD_REQ_T | BASE_JD_REQ_CF | BASE_JD_REQ_COHERENT_GROUP,
                .atom_number = ++atom_count,
-               .prio = BASE_JD_PRIO_LOW,
+               .prio = BASE_JD_PRIO_MEDIUM
                .device_nr = 0
        };