msm: kgsl: Use legacy PM4 check instead of adreno version
Check for legacy PM4 commands instead of adreno version to calculate ringbuffer space for PM4 commands that write to memory. Change-Id: I5d1d4cfbc70bc73ddee9ee752de24aae154a04dc Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
This commit is contained in:
parent
26db194916
commit
341934ba38
1 changed files with 3 additions and 3 deletions
|
@ -813,10 +813,10 @@ int adreno_ringbuffer_submitcmd(struct adreno_device *adreno_dev,
|
||||||
dwords += 6;
|
dwords += 6;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* REG_TO_MEM packet on A5xx needs another ordinal.
|
* REG_TO_MEM packet on A5xx and above needs another ordinal.
|
||||||
* Add 2 more dwords since we do profiling before and after.
|
* Add 2 more dwords since we do profiling before and after.
|
||||||
*/
|
*/
|
||||||
if (adreno_is_a5xx(adreno_dev))
|
if (!ADRENO_LEGACY_PM4(adreno_dev))
|
||||||
dwords += 2;
|
dwords += 2;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -833,7 +833,7 @@ int adreno_ringbuffer_submitcmd(struct adreno_device *adreno_dev,
|
||||||
if (test_bit(CMDOBJ_PROFILE, &cmdobj->priv)) {
|
if (test_bit(CMDOBJ_PROFILE, &cmdobj->priv)) {
|
||||||
kernel_profiling = true;
|
kernel_profiling = true;
|
||||||
dwords += 6;
|
dwords += 6;
|
||||||
if (adreno_is_a5xx(adreno_dev))
|
if (!ADRENO_LEGACY_PM4(adreno_dev))
|
||||||
dwords += 2;
|
dwords += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue