Displaying 12 results from an estimated 12 matches for "vwidth".
Did you mean:
width
2019 Jun 27
2
[PATCH v2] drm/bochs: fix framebuffer setup.
...55,16 +255,22 @@ void bochs_hw_setformat(struct bochs_device *bochs,
}
void bochs_hw_setbase(struct bochs_device *bochs,
- int x, int y, u64 addr)
+ int x, int y, int stride, u64 addr)
{
- unsigned long offset = (unsigned long)addr +
+ unsigned long offset;
+ unsigned int vx, vy, vwidth;
+
+ bochs->stride = stride;
+ offset = (unsigned long)addr +
y * bochs->stride +
x * (bochs->bpp / 8);
- int vy = offset / bochs->stride;
- int vx = (offset % bochs->stride) * 8 / bochs->bpp;
+ vy = offset / bochs->stride;
+ vx = (offset % bochs->stride) * 8 / bochs-&...
2020 Feb 11
1
[PATCH v3] drm/bochs: add drm_driver.release callback.
...,
@@ -256,13 +271,18 @@ void bochs_hw_setformat(struct bochs_device *bochs,
__func__, format->format);
break;
}
+
+ drm_dev_exit(idx);
}
void bochs_hw_setbase(struct bochs_device *bochs,
int x, int y, int stride, u64 addr)
{
unsigned long offset;
- unsigned int vx, vy, vwidth;
+ unsigned int vx, vy, vwidth, idx;
+
+ if (!drm_dev_enter(bochs->dev, &idx))
+ return;
bochs->stride = stride;
offset = (unsigned long)addr +
@@ -277,4 +297,6 @@ void bochs_hw_setbase(struct bochs_device *bochs,
bochs_dispi_write(bochs, VBE_DISPI_INDEX_VIRT_WIDTH, vwidth);
bo...
2020 Feb 11
2
[PATCH v4] drm/bochs: add drm_driver.release callback.
...,
@@ -256,13 +271,18 @@ void bochs_hw_setformat(struct bochs_device *bochs,
__func__, format->format);
break;
}
+
+ drm_dev_exit(idx);
}
void bochs_hw_setbase(struct bochs_device *bochs,
int x, int y, int stride, u64 addr)
{
unsigned long offset;
- unsigned int vx, vy, vwidth;
+ unsigned int vx, vy, vwidth, idx;
+
+ if (!drm_dev_enter(bochs->dev, &idx))
+ return;
bochs->stride = stride;
offset = (unsigned long)addr +
@@ -277,4 +297,6 @@ void bochs_hw_setbase(struct bochs_device *bochs,
bochs_dispi_write(bochs, VBE_DISPI_INDEX_VIRT_WIDTH, vwidth);
bo...
2020 Feb 11
2
[PATCH v4] drm/bochs: add drm_driver.release callback.
...,
@@ -256,13 +271,18 @@ void bochs_hw_setformat(struct bochs_device *bochs,
__func__, format->format);
break;
}
+
+ drm_dev_exit(idx);
}
void bochs_hw_setbase(struct bochs_device *bochs,
int x, int y, int stride, u64 addr)
{
unsigned long offset;
- unsigned int vx, vy, vwidth;
+ unsigned int vx, vy, vwidth, idx;
+
+ if (!drm_dev_enter(bochs->dev, &idx))
+ return;
bochs->stride = stride;
offset = (unsigned long)addr +
@@ -277,4 +297,6 @@ void bochs_hw_setbase(struct bochs_device *bochs,
bochs_dispi_write(bochs, VBE_DISPI_INDEX_VIRT_WIDTH, vwidth);
bo...
2009 Apr 01
2
[LLVMdev] Shuffle combine
...ire that the sources and the mask have the same size, which was
changed a few months ago to allow an arbitrarily-sized mask.
This would be a bug all throughout this function (which generally assumes
this is still the case), if the function didn't do the following check
early:
unsigned VWidth = cast<VectorType>(SVI.getType())->getNumElements();
if (VWidth != cast<VectorType>(LHS->getType())->getNumElements())
return 0;
In other words, if the mask size is not equal to the number of elements in
the vectors, it skips this transformation.
Because the...
2009 Apr 01
0
[LLVMdev] Shuffle combine
...that the sources and the mask have the
same size, which was changed a few months ago to allow an arbitrarily-
sized mask.
This would be a bug all throughout this function (which generally
assumes this is still the case), if the function didn't do the
following check early:
unsigned VWidth = cast<VectorType>(SVI.getType())->getNumElements();
if (VWidth != cast<VectorType>(LHS->getType())->getNumElements())
return 0;
In other words, if the mask size is not equal to the number of
elements in the vectors, it skips this transformation.
Because the LHS is...
2009 Apr 01
2
[LLVMdev] Shuffle combine
Hi all,
I'm having some trouble understanding the following lines in
InstructionCombining.cpp, which possibly contain a bug:
if (Mask[i] >= 2*e)
NewMask.push_back(2*e);
else
NewMask.push_back(LHSMask[Mask[i]]);
When Mask[i] is bigger than the size of LHSMask it reads out of bounds on
that last line. I believe the first line is there to try to prevent that but
then it
2009 Apr 02
2
[LLVMdev] Shuffle combine
...ire that the sources and the mask have the same size, which was
changed a few months ago to allow an arbitrarily-sized mask.
This would be a bug all throughout this function (which generally assumes
this is still the case), if the function didn't do the following check
early:
unsigned VWidth = cast<VectorType>(SVI.getType())->getNumElements();
if (VWidth != cast<VectorType>(LHS->getType())->getNumElements())
return 0;
In other words, if the mask size is not equal to the number of elements in
the vectors, it skips this transformation.
Because the...
2009 Apr 01
0
[LLVMdev] Shuffle combine
...he
> same size, which was changed a few months ago to allow an
> arbitrarily-sized mask.
>
> This would be a bug all throughout this function (which generally
> assumes this is still the case), if the function didn't do the
> following check early:
>
> unsigned VWidth = cast<VectorType>(SVI.getType())->getNumElements();
>
> if (VWidth != cast<VectorType>(LHS->getType())->getNumElements())
> return 0;
>
> In other words, if the mask size is not equal to the number of
> elements in the vectors, it skips this transform...
2020 Feb 11
0
[PATCH v4] drm/bochs: add drm_driver.release callback.
..._device *bochs,
> __func__, format->format);
> break;
> }
> +
> + drm_dev_exit(idx);
> }
>
> void bochs_hw_setbase(struct bochs_device *bochs,
> int x, int y, int stride, u64 addr)
> {
> unsigned long offset;
> - unsigned int vx, vy, vwidth;
> + unsigned int vx, vy, vwidth, idx;
> +
> + if (!drm_dev_enter(bochs->dev, &idx))
> + return;
>
> bochs->stride = stride;
> offset = (unsigned long)addr +
> @@ -277,4 +297,6 @@ void bochs_hw_setbase(struct bochs_device *bochs,
> bochs_dispi_write(boc...
2009 Apr 03
0
[LLVMdev] Shuffle combine
...he
> same size, which was changed a few months ago to allow an
> arbitrarily-sized mask.
>
> This would be a bug all throughout this function (which generally
> assumes this is still the case), if the function didn't do the
> following check early:
>
> unsigned VWidth = cast<VectorType>(SVI.getType())->getNumElements();
>
> if (VWidth != cast<VectorType>(LHS->getType())->getNumElements())
> return 0;
>
> In other words, if the mask size is not equal to the number of
> elements in the vectors, it skips this transform...
2020 Feb 10
1
[PATCH v2] drm/bochs: add drm_driver.release callback.
...if (!bochs->ready)
+ return;
+
DRM_DEBUG_DRIVER("format %c%c%c%c\n",
(format->format >> 0) & 0xff,
(format->format >> 8) & 0xff,
@@ -264,6 +275,9 @@ void bochs_hw_setbase(struct bochs_device *bochs,
unsigned long offset;
unsigned int vx, vy, vwidth;
+ if (!bochs->ready)
+ return;
+
bochs->stride = stride;
offset = (unsigned long)addr +
y * bochs->stride +
--
2.18.1