On Sat 18 Jun 2016, Jason Ekstrand wrote:
> The docs specify that this only matters for render targets and surfaces
> used with typed dataport messages.  On some platforms (gen4-6) the Depth
> field has more bits than RenderTargetViewExtent so we can have textures
> with more levels than we can render to.


I really want to see the commit message as a comment in the code,
because it's subtle and surprising. Without such a comment, it's
a complete mystery why the assignment is guarded by the usage flags.
After all, the PRMs say RenderTargetViewExtent is ignored when the
surface is neither a render target nor dataport surface; so
(rhetorically) why doesn't set RenderTargetViewExtent unconditionally?

Insert some variant of the commit message as comment, and this is
Reviewed-by: Chad Versace <chad.vers...@intel.com>

Also, how did you find this subtle problem? Did a pack function throw an
assertion failure?

> Signed-off-by: Jason Ekstrand <ja...@jlekstrand.net>
> Cc: Chad Versace <chad.vers...@intel.com>
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to